From 406b7236129b357141ca4b9f7655751357f215a6 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Thu, 19 Sep 2024 09:44:10 +0200 Subject: [PATCH] Fix grammar --- ldapauthenticator/ldapauthenticator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ldapauthenticator/ldapauthenticator.py b/ldapauthenticator/ldapauthenticator.py index 05f2bdd..c8575d9 100644 --- a/ldapauthenticator/ldapauthenticator.py +++ b/ldapauthenticator/ldapauthenticator.py @@ -382,7 +382,7 @@ def resolve_username(self, username_supplied_by_user): def get_connection(self, userdn, password): """ - Returns either a ldap3 Connection object automatically bound to the + Returns either an ldap3 Connection object automatically bound to the user, or None if the bind operation failed for some reason. Raises errors on connectivity or TLS issues. @@ -491,7 +491,7 @@ async def authenticate(self, handler, data): if conn: break if not conn: - self.log.warning(f"Failed to bind user '{username}' to a LDAP user.") + self.log.warning(f"Failed to bind user '{username}' to an LDAP user.") return None if self.search_filter: