fixed misspelled function

This commit is contained in:
Sebastian Rust
2022-07-02 16:29:15 +02:00
parent 769795998e
commit 78c35cf4dd

View File

@@ -76,7 +76,7 @@ class Auth(BaseAuth):
SUPPORT_EXTENDED = self.configuration.get("auth", "ldap_support_extended") SUPPORT_EXTENDED = self.configuration.get("auth", "ldap_support_extended")
try: try:
conn = ldap3.Connection(server, f'cn={user},ou=users,DC=ldap,DC=goauthentik,DC=io', password, client_strategy=SAFE_SYNC, auto_bind=True) conn = ldap3.Connection(SERVER, f'cn={user},ou=users,DC=ldap,DC=goauthentik,DC=io', password, client_strategy=SAFE_SYNC, auto_bind=True)
return user return user
except Exception as err: except Exception as err:
logger.debug("LDAP error: %s" % err) logger.debug("LDAP error: %s" % err)