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

update LDAP extension

parent 8d496cbf
......@@ -85,8 +85,8 @@ class LDAPExport(object):
for group in groups:
try:
self.group_add(unicode(group.name), group.id + self.gid_offset)
for member in group.users:
self.group_add_member(unicode(group.name), unicode(member.name))
for assoc in group.get_users():
self.group_add_member(unicode(group.name), unicode(assoc.user.name))
except:
logger.exception("sync_all_groups")
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