forked from mystiq/dex
connector/ldap: fix bug in switch statement
This commit is contained in:
parent
d7912a3a97
commit
4329406158
1 changed files with 2 additions and 1 deletions
|
@ -311,7 +311,8 @@ func (c *ldapConnector) Login(username, password string) (ident connector.Identi
|
|||
switch n := len(resp.Entries); n {
|
||||
case 0:
|
||||
return fmt.Errorf("ldap: no results returned for filter: %q", filter)
|
||||
case 2:
|
||||
case 1:
|
||||
default:
|
||||
return fmt.Errorf("ldap: filter returned multiple (%d) results: %q", n, filter)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue