added )
This commit is contained in:
@@ -163,7 +163,7 @@ cnx.close()
|
||||
# if they are not in the sql table, insert a new row to add them
|
||||
# if they are disabled in the sql table, enable them
|
||||
for ldapUser in ldapUsers:
|
||||
logger.debug("Checking if LDAP user {0} is in SQl Table".format(ldapUser.mail)
|
||||
logger.debug("Checking if LDAP user {0} is in SQl Table".format(ldapUser.mail))
|
||||
cnx = mysql.connector.connect(**dbconfig)
|
||||
cursor = cnx.cursor()
|
||||
query = "SELECT * FROM LDAPUsers WHERE email = '{0}'".format(ldapUser.mail)
|
||||
|
||||
Reference in New Issue
Block a user