mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
samaccountname as login example
This commit is contained in:
parent
769bee060c
commit
c23b5bf1e6
1 changed files with 15 additions and 1 deletions
|
|
@ -107,7 +107,21 @@ OUs like
|
|||
ou=people ou=external ou=robots
|
||||
```
|
||||
you can also specify a `binddn` and `bindpass` for vault to search for the DN
|
||||
of a user.
|
||||
of a user. This also works for the AD where a typical setup is to have user
|
||||
DNs in the form `cn=Firstname Lastname,ou=Users,dc=example,dc=com` but you
|
||||
want to login users using the `sAMAccountName` attribute. For that specify
|
||||
```
|
||||
$ vault write auth/ldap/config url="ldap://ldap.forumsys.com" \
|
||||
userattr=sAMAccountName \
|
||||
userdn="ou=users,dc=example,dc=com" \
|
||||
groupdn="dc=example,dc=com" \
|
||||
binddn="cn=vault,ou=users,dc=example,dc=com" \
|
||||
bindpass='My$ecrt3tP4ss' \
|
||||
certificate=@ldap_ca_cert.pem \
|
||||
insecure_tls=false \
|
||||
starttls=true
|
||||
...
|
||||
```
|
||||
|
||||
Next we want to create a mapping from an LDAP group to a Vault policy:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue