From eb04d305ab9806d0c96b3e5594bc4fe184658d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Sun, 21 Nov 2021 15:34:19 +0100 Subject: [PATCH] [auth_ldap] fix add displayName when create --- flaschengeist/plugins/auth_ldap/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flaschengeist/plugins/auth_ldap/__init__.py b/flaschengeist/plugins/auth_ldap/__init__.py index a872ce8..ebe84c3 100644 --- a/flaschengeist/plugins/auth_ldap/__init__.py +++ b/flaschengeist/plugins/auth_ldap/__init__.py @@ -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)