Factoring the model user and correcting password

This commit is contained in:
Chris Mann 2023-07-22 11:51:05 +02:00
parent 97c9d8def9
commit ed810f7f02

View file

@ -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})
}