mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 20:36:26 +02:00
Merge pull request #6250 from chrissphinx/patch-1
fix example that was out-of-date
This commit is contained in:
commit
0bf249dba7
@ -141,11 +141,15 @@ group, the **group ID** or **group name** must be provided (e.g.
|
||||
Example:
|
||||
|
||||
This policy allows users to change their own password given that the username
|
||||
and password are defined in the `userpass` auth method.
|
||||
and password are defined in the `userpass` auth method. The mount accessor
|
||||
value (`auth_userpass_6671d643` in this example) can be read from the `sys/auth` endpoint.
|
||||
|
||||
```hcl
|
||||
path "auth/userpass/users/{{identity.entity.aliases.auth_userpass_6671d643.name}}/password" {
|
||||
path "auth/userpass/users/{{identity.entity.aliases.auth_userpass_6671d643.name}}" {
|
||||
capabilities = [ "update" ]
|
||||
allowed_parameters = {
|
||||
"password" = []
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user