From ed810f7f0237b89ba871efc2c98d33649f85e93b Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Sat, 22 Jul 2023 11:51:05 +0200 Subject: [PATCH] Factoring the model user and correcting password --- model-user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model-user.go b/model-user.go index 0ee4d8d..7d8c94b 100644 --- a/model-user.go +++ b/model-user.go @@ -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}) }