Hello,
I’m having trouble changing the user’s password.
No matter how I look at it, I don’t know.
Please Help me!
- vault version : v1.9.4
[azureuser@kb-aad-test ~]$ vault auth list
Path Type Accessor Description
azure/ azure auth_azure_262b4556 n/a
token/ token auth_token_63a1df07 token based credentials
userpass/ userpass auth_userpass_b6d16978 n/a
[azureuser@kb-aad-test ~]$ vault write auth/userpass/users/testuser password=test policies=userpass
Success! Data written to: auth/userpass/users/testuser
[azureuser@kb-aad-test ~]$ vault login -method=userpass username=testuser
Password (will be hidden):
Success! You are now authenticated. The token information displayed below
is already stored in the token helper. You do NOT need to run “vault login”
again. Future Vault requests will automatically use this token.
Key Value
token s.0GGttIf7lct3K5SMG1s31vYg
token_accessor Keow4BgtT40gcBlRuD3Hemah
token_duration 768h
token_renewable true
token_policies [“userpass” “default”]
identity_policies
policies [“userpass” “default”]
token_meta_username testuser
[azureuser@kb-aad-test ~]$ vault write auth/userpass/users/testuser password=newpass
Error writing data to auth/userpass/users/testuser: Error making API request.
URL: PUT http://127.0.0.1:8200/v1/auth/userpass/users/testuser
Code: 403. Errors:
- 1 error occurred:
* permission denied
My policy is as follows.
path “auth/userpass/users/{{identity.entity.aliases.auth_userpass_b6d16978.name}}” {
capabilities = [ “update” ]
allowed_parameters = {
“password” = [ ]
}
}
What am I missing?
Please comment!