diff --git a/uffd/ldap/ldap.py b/uffd/ldap/ldap.py index 760ae0929ce08b2e9e559595240bbf0e1ca55ca5..6cab6495dedc2dec384fe998a978a50355d83181 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