From 71ba70e9da98ffd4c635e2e931a9810e0d0587fb Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Tue, 2 Nov 2021 09:35:09 -0400 Subject: [PATCH] updated ldap config --- seafile-ldap.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/seafile-ldap.py b/seafile-ldap.py index ba21448..f819bb3 100644 --- a/seafile-ldap.py +++ b/seafile-ldap.py @@ -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: ".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']))