Factoring the model user and correcting password
This commit is contained in:
parent
97c9d8def9
commit
ed810f7f02
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ func add(user User, config *ConfigFile, ldapConn *ldap.Conn) error {
|
|||
|
||||
dn := user.DN
|
||||
req := ldap.NewAddRequest(dn, nil)
|
||||
req.Attribute("objectClass", []string{"top", "inetOrgPerson", "pilotPerson"})
|
||||
req.Attribute("objectClass", []string{"top", "person", "organizationalPerson", "inetOrgPerson"})
|
||||
if user.DisplayName != "" {
|
||||
req.Attribute("displayName", []string{user.DisplayName})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue