updated ldap server connection variables

This commit is contained in:
2021-11-02 09:56:49 -04:00
parent 5691521636
commit c11cb4cfb0

View File

@@ -116,9 +116,9 @@ logger.debug("Finished reading the ccnet.conf file.")
# setup the server
ldapServer = Server(ldapHost)
logger.debug("Setup server connection uri: {0}".format(ldapServer))
logger.debug("Setup LDAP server connection uri: {0}".format(ldapServer))
try:
ldap = Connection(server, bindAccount, bindPassword, auto_bind=True)
ldap = Connection(ldapServer, ldapUserDN, ldapUserPassword, auto_bind=True)
except core.exceptions.LDAPBindError as e:
logger.critical("LDAP Bind Failed. {0}".format(e))
exit()