Update seafile-ldap.py
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user