1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-12-22 04:40:03 +01:00
This commit is contained in:
kakwa 2024-03-12 22:33:34 +01:00
parent 3c9bc8a0ac
commit 6265d04f09

View File

@ -486,7 +486,11 @@ class LdapCherry(object):
"""
for attr in attrs_backend:
if attr in self.attributes.backend_attributes[backend_name]:
attrid = self.attributes.backend_attributes[backend_name][attr]
attr_desc = self.attributes.backend_attributes[backend_name][attr]
if type(attr_desc) is list:
attrid = attr_desc[0]['id']
else:
attrid = attr_desc['id']
if attrid not in attrs_out:
attrs_out[attrid] = attrs_backend[attr]