diff --git a/ldapauthenticator/ldapauthenticator.py b/ldapauthenticator/ldapauthenticator.py index cb1f85e..1187349 100644 --- a/ldapauthenticator/ldapauthenticator.py +++ b/ldapauthenticator/ldapauthenticator.py @@ -521,13 +521,15 @@ async def authenticate(self, handler, data): n_users = len(conn.response) if n_users == 0: self.log.warning( - f"User with '{self.user_attribute}={username}' not found in directory" + "Configured search_filter found no user associated with " + f"userattr='{self.user_attribute}' and username='{username}'" ) return None if n_users > 1: self.log.warning( - "Duplicate users found! {n_users} users found " - f"with '{self.user_attribute}={username}'" + "Configured search_filter found multiple users associated with " + f"userattr='{self.user_attribute}' and username='{username}', a " + "unique match is required." ) return None