diff --git a/seafile-ldap.py b/seafile-ldap.py index 0a1f89b..99673da 100644 --- a/seafile-ldap.py +++ b/seafile-ldap.py @@ -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))