From a719690e3de38dfb304e7e5fc24d7711f771aea5 Mon Sep 17 00:00:00 2001 From: nd <git@notandy.de> Date: Sun, 12 Jul 2020 11:51:47 +0200 Subject: [PATCH] fixup! moved to generic ldap connection instead of service/user connection --- uffd/ldap/ldap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uffd/ldap/ldap.py b/uffd/ldap/ldap.py index 760ae092..6cab6495 100644 --- a/uffd/ldap/ldap.py +++ b/uffd/ldap/ldap.py @@ -15,7 +15,7 @@ def fix_connection(conn): def service_conn(): server = Server(current_app.config["LDAP_SERVICE_URL"], get_info=ALL) - conn = Connection(server, current_app.config["LDAP_SERVICE_BIND_DN"], current_app.config["LDAP_SERVICE_BIND_PASSWORD"], auto_bind=True) + return Connection(server, current_app.config["LDAP_SERVICE_BIND_DN"], current_app.config["LDAP_SERVICE_BIND_PASSWORD"], auto_bind=True) def user_conn(): pass -- GitLab