forked from mystiq/dex
connector/ldap: correct a comment.
This commit is contained in:
parent
a7097c80e3
commit
0dd024d669
1 changed files with 1 additions and 1 deletions
|
@ -359,7 +359,7 @@ func (c *ldapConnector) userEntry(conn *ldap.Conn, username string) (user ldap.E
|
|||
}
|
||||
|
||||
func (c *ldapConnector) Login(ctx context.Context, s connector.Scopes, username, password string) (ident connector.Identity, validPass bool, err error) {
|
||||
// make this check to avoid anonymous bind to the LDAP server.
|
||||
// make this check to avoid unauthenticated bind to the LDAP server.
|
||||
if password == "" {
|
||||
return connector.Identity{}, false, nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue