updated ldap server connection variables
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user