mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 01:14:21 +01:00
stuff
This commit is contained in:
parent
3c9bc8a0ac
commit
6265d04f09
@ -486,7 +486,11 @@ class LdapCherry(object):
|
|||||||
"""
|
"""
|
||||||
for attr in attrs_backend:
|
for attr in attrs_backend:
|
||||||
if attr in self.attributes.backend_attributes[backend_name]:
|
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:
|
if attrid not in attrs_out:
|
||||||
attrs_out[attrid] = attrs_backend[attr]
|
attrs_out[attrid] = attrs_backend[attr]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user