Skip to content

Commit

Permalink
Return NoMatch when user does not exist in LDAP
Browse files Browse the repository at this point in the history
  • Loading branch information
raphink committed Jul 13, 2016
1 parent 334610c commit f324446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth_server/authn/ldap_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (la *LDAPAuth) Authenticate(account string, password PasswordString) (bool,
return false, uSearchErr
}
if accountEntryDN == "" {
return false, nil // User does not exist
return false, NoMatch // User does not exist
}
// Bind as the user to verify their password
if len(accountEntryDN) > 0 {
Expand Down

0 comments on commit f324446

Please sign in to comment.