sources/ldap: load operational attributes (#526)

This commit is contained in:
Jens L 2021-02-04 12:37:55 +01:00 committed by GitHub
parent cc3fccb27e
commit 89dc4db30b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ class LDAPSynchronizer:
search_base=self.base_dn_groups, search_base=self.base_dn_groups,
search_filter=self._source.group_object_filter, search_filter=self._source.group_object_filter,
search_scope=ldap3.SUBTREE, search_scope=ldap3.SUBTREE,
attributes=ldap3.ALL_ATTRIBUTES, attributes=[ldap3.ALL_ATTRIBUTES, ldap3.ALL_OPERATIONAL_ATTRIBUTES],
) )
group_count = 0 group_count = 0
for group in groups: for group in groups:
@ -81,7 +81,7 @@ class LDAPSynchronizer:
search_base=self.base_dn_users, search_base=self.base_dn_users,
search_filter=self._source.user_object_filter, search_filter=self._source.user_object_filter,
search_scope=ldap3.SUBTREE, search_scope=ldap3.SUBTREE,
attributes=ldap3.ALL_ATTRIBUTES, attributes=[ldap3.ALL_ATTRIBUTES, ldap3.ALL_OPERATIONAL_ATTRIBUTES],
) )
user_count = 0 user_count = 0
for user in users: for user in users: