Skip to content

Commit

Permalink
Remove userfilter check
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonodonnell committed Mar 14, 2022
1 parent 2b54ace commit a1ae3c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion builtin/credential/ldap/path_login.go
Expand Up @@ -103,7 +103,7 @@ func (b *backend) pathLogin(ctx context.Context, req *logical.Request, d *framew
},
}

if cfg.UsernameAsAlias && cfg.UserFilter == "" {
if cfg.UsernameAsAlias {
auth.Alias.Name = username
}

Expand Down
2 changes: 1 addition & 1 deletion website/content/docs/auth/ldap.mdx
Expand Up @@ -149,7 +149,7 @@ Use `vault path-help` for more details.

### Other

- `username_as_alias` (bool, optional) - If set to true, forces the auth method to use the username passed by the user as the alias name. This setting is ignored if `userfilter` is set.
- `username_as_alias` (bool, optional) - If set to true, forces the auth method to use the username passed by the user as the alias name.


## Examples:
Expand Down

0 comments on commit a1ae3c4

Please sign in to comment.