From a897f5aa75edb24b3ebc66890a49e72d0591e1cc Mon Sep 17 00:00:00 2001 From: mr Date: Wed, 4 Feb 2026 11:06:38 +0100 Subject: [PATCH] user not found --- infrastructure/auth_connector/ldap.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infrastructure/auth_connector/ldap.go b/infrastructure/auth_connector/ldap.go index f35322d..3c07cdb 100644 --- a/infrastructure/auth_connector/ldap.go +++ b/infrastructure/auth_connector/ldap.go @@ -387,8 +387,9 @@ func (cli *Client) findBasicUserDetails(cn conn, username string, attrs []string if err != nil { return nil, err } - if len(entries) != 1 { + if len(entries) == 0 { // We didn't find the user. + fmt.Println("user not found") return nil, nil }