fix: fix error message in ldap search result

This commit is contained in:
Stavros
2025-07-05 15:23:24 +03:00
parent 01042a3003
commit c671ef13b8

View File

@@ -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)