Update seafile-ldap.py
This commit is contained in:
@@ -253,7 +253,7 @@ for ldapGroup in ldapGroups:
|
||||
ldap.search(ldapBase, '(distinguishedName={0})'.format(ldapGroupMember), attributes=['*'])
|
||||
count = len(ldap.entries)
|
||||
logger.debug("Found {0} LDAP user.".format(count))
|
||||
if count == 1 and [item for item in seafileGroupMembers if ldap.entries.[0].mail in item ]:
|
||||
if count == 1 and [item for item in seafileGroupMembers if ldap.entries[0].mail in item ]:
|
||||
continue
|
||||
else:
|
||||
print("User {0} is not in Seafile Group {1}".format(ldap.entries[0].mail, ldapGroup.name))
|
||||
|
||||
Reference in New Issue
Block a user