[auth_ldap] fix add displayName when create
This commit is contained in:
parent
471258c886
commit
eb04d305ab
|
@ -113,6 +113,8 @@ class AuthLDAP(AuthPlugin):
|
||||||
"mail": user.mail,
|
"mail": user.mail,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
if user.display_name:
|
||||||
|
attributes.update( {"displayName": user.display_name})
|
||||||
ldap_conn.add(dn, self.object_classes, attributes)
|
ldap_conn.add(dn, self.object_classes, attributes)
|
||||||
self._set_roles(user)
|
self._set_roles(user)
|
||||||
self.update_user(user)
|
self.update_user(user)
|
||||||
|
|
Loading…
Reference in New Issue