ldap: Work-arround with AD invalid return on searching objects
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
85d34b7b9a
commit
651e1a1a6c
1 changed files with 3 additions and 0 deletions
|
@ -581,6 +581,9 @@ class LdapClient:
|
|||
|
||||
objects = {}
|
||||
for obj_dn, obj_attrs in ldap_data.items():
|
||||
# Ignore invalid result (view with an AD)
|
||||
if not obj_dn or not isinstance(obj_attrs, dict):
|
||||
continue
|
||||
objects[obj_dn] = self._get_obj(obj_dn, obj_attrs)
|
||||
self._cached_objects[name] = objects
|
||||
if not key_attr or key_attr == 'dn':
|
||||
|
|
Loading…
Reference in a new issue