[auth_ldap] fix add displayName when create
This commit is contained in:
parent
04d5b1e83a
commit
0b94177235
|
@ -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