updated ldap config

This commit is contained in:
2021-11-02 09:35:09 -04:00
parent 6662ead608
commit 71ba70e9da

View File

@@ -90,15 +90,18 @@ else:
logger.critical("Unable to find/read ccnet.conf file. Please ensure the ccnet.conf path is correct in the config.ini.")
exit(2)
serverDNS = config['LDAP SERVER']['server']
serverPort = config['LDAP SERVER'].getint('port')
serverSSL = config['LDAP SERVER'].getboolean('ssl')
logger.debug("Server: {0}, Server Port: {1}, Using SSL: {2}".format(serverDNS, serverPort, serverSSL))
# ldap Config
ldapServer = config['LDAP']['HOST']
#ldapPort = config['LDAP SERVER'].getint('port')
#ldapSSL = config['LDAP SERVER'].getboolean('ssl')
ldapBase = config['LDAP']['BASE']
ldapUserDN = config['LDAP']['USER_DN']
ldapUserPassword = config['LDAP']['PASSWORD']
ldapFilter = config['LDAP']['FILTER']
logger.debug("Server: {0}, Base: {1}, User DN: {2}, Filter: {3}".format(ldapServer, ldapBase, ldapUserDN, ldapFilter))
bindAccount = config['Bind Account']['username']
bindPassword = config['Bind Account']['password']
logger.debug("Bind Account: {0}, Bind Password: <hidden>".format(bindAccount))
logger.debug("Finished reading the ini config.")
logger.debug("Finished reading the config.")
seafile = config['Seafile']
logger.debug("Seafile URL: {0}".format(seafile['url']))