[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,
|
LDAP_REQUIRE_CERT=ssl.CERT_NONE,
|
||||||
FORCE_ATTRIBUTE_VALUE_AS_LIST=True,
|
FORCE_ATTRIBUTE_VALUE_AS_LIST=True,
|
||||||
)
|
)
|
||||||
if "SECRET" in config:
|
if "secret" in config:
|
||||||
app.config["LDAP_SECRET"] = (config["secret"],)
|
app.config["LDAP_SECRET"] = config["secret"]
|
||||||
self.ldap = LDAPConn(app)
|
self.ldap = LDAPConn(app)
|
||||||
self.dn = config["base_dn"]
|
self.dn = config["base_dn"]
|
||||||
self.default_gid = config["default_gid"]
|
self.default_gid = config["default_gid"]
|
||||||
|
|
Loading…
Reference in New Issue