Browse Source

improve attributes map key

Jonathan Turner 9 years ago
parent
commit
3e2b99589b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      credentials/credentials.go

+ 3 - 3
credentials/credentials.go

@@ -21,7 +21,7 @@ type Credentials struct {
 	CName      types.PrincipalName
 	Keytab     keytab.Keytab
 	Password   string
-	Attributes map[string]interface{}
+	Attributes map[int]interface{}
 }
 
 // ADCredentials contains information obtained from the PAC.
@@ -49,7 +49,7 @@ func NewCredentials(username string, realm string) Credentials {
 			NameString: []string{username},
 		},
 		Keytab:     keytab.NewKeytab(),
-		Attributes: make(map[string]interface{}),
+		Attributes: make(map[int]interface{}),
 	}
 }
 
@@ -60,7 +60,7 @@ func NewCredentialsFromPrincipal(cname types.PrincipalName, realm string) Creden
 		Realm:      realm,
 		CName:      cname,
 		Keytab:     keytab.NewKeytab(),
-		Attributes: make(map[string]interface{}),
+		Attributes: make(map[int]interface{}),
 	}
 }