Update seafile-ldap.py
This commit is contained in:
@@ -170,9 +170,9 @@ for ldapUser in ldapUsers:
|
||||
cursor.execute(query, (str(ldapUser.mail),))
|
||||
logger.debug("Cursor: {0}".format(cursor))
|
||||
row_count = cursor.rowcount
|
||||
logger.debug("Found {0} SQL LDAP users".format(cursor.rowcount))
|
||||
logger.debug("Found {0} SQL LDAP user".format(cursor.rowcount))
|
||||
sqlLDAPuser = cursor.fetchall()
|
||||
logger.debug("User: {0} - Active: {1}".format(sqlLDAPuser[1], bool(sqlLDAPuser[4])))
|
||||
cnx.close()
|
||||
if row_count == 1:
|
||||
# User is in the sql table
|
||||
# are they active
|
||||
|
||||
Reference in New Issue
Block a user