From c11cb4cfb03a4ec363b3ceaa7f44534ecba1aad7 Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Tue, 2 Nov 2021 09:56:49 -0400 Subject: [PATCH] updated ldap server connection variables --- seafile-ldap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seafile-ldap.py b/seafile-ldap.py index cef6ade..1411f7f 100644 --- a/seafile-ldap.py +++ b/seafile-ldap.py @@ -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()