Skip to content

Commit

Permalink
Do not lowercase groups attached to users in ldap (#2613)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishoffman committed Apr 19, 2017
1 parent 6b55ab5 commit c4cc3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/credential/ldap/path_users.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (b *backend) pathUserRead(
func (b *backend) pathUserWrite(
req *logical.Request, d *framework.FieldData) (*logical.Response, error) {
name := d.Get("name").(string)
groups := strutil.ParseDedupAndSortStrings(d.Get("groups").(string), ",")
groups := strutil.RemoveDuplicates(strutil.ParseStringSlice(d.Get("groups").(string), ","), false)
policies := policyutil.ParsePolicies(d.Get("policies").(string))
for i, g := range groups {
groups[i] = strings.TrimSpace(g)
Expand Down

0 comments on commit c4cc3fd

Please sign in to comment.