This commit is contained in:
2021-11-02 13:47:12 -04:00
parent e14d0440b5
commit abd99edda6

View File

@@ -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)