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