Factoring the model user and correcting password
This commit is contained in:
parent
8a92020a65
commit
0153f8acec
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@ func get(user User, config *ConfigFile, ldapConn *ldap.Conn) (*User, error) {
|
|||
DN: user.DN,
|
||||
GivenName: searchRes.Entries[0].GetAttributeValue("givenName"),
|
||||
DisplayName: searchRes.Entries[0].GetAttributeValue("displayName"),
|
||||
Description: searchRes.Entries[0].GetAttributeValue("description"),
|
||||
SN: searchRes.Entries[0].GetAttributeValue("sn"),
|
||||
UID: searchRes.Entries[0].GetAttributeValue("uid"),
|
||||
CN: searchRes.Entries[0].GetAttributeValue("cn"),
|
||||
|
|
Loading…
Reference in a new issue