[auth_ldap] Fix typo in __init__
This commit is contained in:
parent
50ccfac565
commit
ea782b40d6
|
@ -45,7 +45,7 @@ class AuthLDAP(AuthPlugin):
|
||||||
|
|
||||||
# TODO: might not be set if modify is called
|
# TODO: might not be set if modify is called
|
||||||
self.root_dn = config.get("root_dn", None)
|
self.root_dn = config.get("root_dn", None)
|
||||||
self.root_secret = self.root_dn = config.get("root_secret", None)
|
self.root_secret = config.get("root_secret", None)
|
||||||
|
|
||||||
@after_role_updated
|
@after_role_updated
|
||||||
def _role_updated(role, new_name):
|
def _role_updated(role, new_name):
|
||||||
|
@ -219,8 +219,11 @@ class AuthLDAP(AuthPlugin):
|
||||||
else:
|
else:
|
||||||
ldap_conn.delete(dn)
|
ldap_conn.delete(dn)
|
||||||
|
|
||||||
except (LDAPPasswordIsMandatoryError, LDAPBindError):
|
except LDAPPasswordIsMandatoryError:
|
||||||
raise BadRequest
|
raise BadRequest
|
||||||
|
except LDAPBindError:
|
||||||
|
logger.debug(f"Could not bind to LDAP server", exc_info=True)
|
||||||
|
raise InternalServerError
|
||||||
|
|
||||||
def __hash(self, password):
|
def __hash(self, password):
|
||||||
if self.password_hash == "ARGON2":
|
if self.password_hash == "ARGON2":
|
||||||
|
|
Loading…
Reference in New Issue