[fix] ldap user right secret

This commit is contained in:
Tim Gröger 2021-03-07 13:29:43 +01:00
parent f9ac002b53
commit 5826ec7a00
1 changed files with 2 additions and 2 deletions

View File

@ -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"]