From 5826ec7a00c2305fdd6c055f5d006c5397cbeaee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Sun, 7 Mar 2021 13:29:43 +0100 Subject: [PATCH] [fix] ldap user right secret --- flaschengeist/plugins/auth_ldap/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flaschengeist/plugins/auth_ldap/__init__.py b/flaschengeist/plugins/auth_ldap/__init__.py index b07cf36..7bcefc7 100644 --- a/flaschengeist/plugins/auth_ldap/__init__.py +++ b/flaschengeist/plugins/auth_ldap/__init__.py @@ -30,8 +30,8 @@ class AuthLDAP(AuthPlugin): LDAP_REQUIRE_CERT=ssl.CERT_NONE, FORCE_ATTRIBUTE_VALUE_AS_LIST=True, ) - if "SECRET" in config: - app.config["LDAP_SECRET"] = (config["secret"],) + if "secret" in config: + app.config["LDAP_SECRET"] = config["secret"] self.ldap = LDAPConn(app) self.dn = config["base_dn"] self.default_gid = config["default_gid"]