diff --git a/seafile-ldap.py b/seafile-ldap.py index cf40eea..a18f418 100644 --- a/seafile-ldap.py +++ b/seafile-ldap.py @@ -127,3 +127,11 @@ except core.exceptions.LDAPBindError as e: # add users to group if missing and in the seafile group # remove members in not in group or seafile group # remove seafile groups if ad group is removed +ldap.search(config['LDAP SERVER']['groupBaseDN'], '(objectClass=group)', attributes=['*']) +#print(ldap.entries) +for group in ldap.entries: + try: + if group.member: + logger.debug("{0}".format(group.name)) + finally: + continue