[fix] ldap user right secret
This commit is contained in:
parent
f9ac002b53
commit
5826ec7a00
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue