Commit 976571eb authored by Martin Urban's avatar Martin Urban
Browse files

update LDAP extension

parent 8d496cbf
...@@ -85,8 +85,8 @@ class LDAPExport(object): ...@@ -85,8 +85,8 @@ class LDAPExport(object):
for group in groups: for group in groups:
try: try:
self.group_add(unicode(group.name), group.id + self.gid_offset) self.group_add(unicode(group.name), group.id + self.gid_offset)
for member in group.users: for assoc in group.get_users():
self.group_add_member(unicode(group.name), unicode(member.name)) self.group_add_member(unicode(group.name), unicode(assoc.user.name))
except: except:
logger.exception("sync_all_groups") logger.exception("sync_all_groups")
except: except:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment