fixed misspelled function
This commit is contained in:
@@ -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 = 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)
|
||||||
|
|||||||
Reference in New Issue
Block a user