Skip to content

Commit

Permalink
Fix case sensitive user attribute map breaking Vault logins
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonodonnell committed Mar 27, 2024
1 parent faa330b commit 8254035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldap/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func (c *Client) Authenticate(ctx context.Context, username, password string, op
return nil, fmt.Errorf("%s: failed to get user attributes: %w", op, err)
}
for _, a := range attrs {
userAttrs[a.Name] = a.Vals
userAttrs[strings.ToLower(a.Name)] = a.Vals
}
}
if !opts.withGroups && !c.conf.IncludeUserGroups {
Expand Down

0 comments on commit 8254035

Please sign in to comment.