Skip to content

Commit

Permalink
backport of commit 3a713c1
Browse files Browse the repository at this point in the history
  • Loading branch information
remilapeyre committed May 20, 2022
1 parent 1827a17 commit 5505b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/credential/ldap/backend.go
Expand Up @@ -202,8 +202,8 @@ func (b *backend) Login(ctx context.Context, req *logical.Request, username stri
if usernameAsAlias {
return username, policies, ldapResponse, allGroups, nil
}
entityAliasAttribute, err = ldapClient.GetUserAliasAttributeValue(cfg.ConfigEntry, c, username)

entityAliasAttribute, err := ldapClient.GetUserAliasAttributeValue(cfg.ConfigEntry, c, username)
if err != nil {
return "", nil, logical.ErrorResponse(err.Error()), nil, nil
}
Expand Down

0 comments on commit 5505b59

Please sign in to comment.