Update seafile-ldap.py

This commit is contained in:
2021-10-21 15:37:29 -04:00
parent 234fc86c02
commit d213709436

View File

@@ -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