From c671ef13b82e886eae9e383b0e473a49278e8d00 Mon Sep 17 00:00:00 2001 From: Stavros Date: Sat, 5 Jul 2025 15:23:24 +0300 Subject: [PATCH] fix: fix error message in ldap search result --- internal/ldap/ldap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ldap/ldap.go b/internal/ldap/ldap.go index 39f709e..481eb66 100644 --- a/internal/ldap/ldap.go +++ b/internal/ldap/ldap.go @@ -53,7 +53,7 @@ func (l *LDAP) Search(username string) (string, error) { } if len(searchResult.Entries) != 1 { - return "", fmt.Errorf("user not found or multiple entries found for username: %s", username) + return "", fmt.Errorf("err multiple or no entries found for user %s", username) } // User found, return the distinguished name (DN)