[auth_ldap] fix add displayName when create

This commit is contained in:
Tim Gröger 2021-11-21 15:34:19 +01:00
parent 471258c886
commit eb04d305ab
1 changed files with 2 additions and 0 deletions

View File

@ -113,6 +113,8 @@ class AuthLDAP(AuthPlugin):
"mail": user.mail,
}
)
if user.display_name:
attributes.update( {"displayName": user.display_name})
ldap_conn.add(dn, self.object_classes, attributes)
self._set_roles(user)
self.update_user(user)