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 }