From 89dc4db30bca563e2b2e78144b0318f166cb6663 Mon Sep 17 00:00:00 2001 From: Jens L Date: Thu, 4 Feb 2021 12:37:55 +0100 Subject: [PATCH] sources/ldap: load operational attributes (#526) --- authentik/sources/ldap/sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authentik/sources/ldap/sync.py b/authentik/sources/ldap/sync.py index 2f1956789..63d1f21e8 100644 --- a/authentik/sources/ldap/sync.py +++ b/authentik/sources/ldap/sync.py @@ -44,7 +44,7 @@ class LDAPSynchronizer: search_base=self.base_dn_groups, search_filter=self._source.group_object_filter, search_scope=ldap3.SUBTREE, - attributes=ldap3.ALL_ATTRIBUTES, + attributes=[ldap3.ALL_ATTRIBUTES, ldap3.ALL_OPERATIONAL_ATTRIBUTES], ) group_count = 0 for group in groups: @@ -81,7 +81,7 @@ class LDAPSynchronizer: search_base=self.base_dn_users, search_filter=self._source.user_object_filter, search_scope=ldap3.SUBTREE, - attributes=ldap3.ALL_ATTRIBUTES, + attributes=[ldap3.ALL_ATTRIBUTES, ldap3.ALL_OPERATIONAL_ATTRIBUTES], ) user_count = 0 for user in users: