From 004abbfd2ade99895a8a43092dacc8f8c38e94fc Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Mon, 17 Apr 2023 13:29:41 -0400 Subject: [PATCH] backport of commit ccf9492d670ac55b976f8d0b2e16901956275a54 (#20204) Co-authored-by: Niranjan Shrestha --- website/content/docs/auth/userpass.mdx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/website/content/docs/auth/userpass.mdx b/website/content/docs/auth/userpass.mdx index 69cc57e8e7ae..f168ffaabb17 100644 --- a/website/content/docs/auth/userpass.mdx +++ b/website/content/docs/auth/userpass.mdx @@ -65,14 +65,20 @@ management tool. 1. Enable the userpass auth method: - ```text + ```shell-session $ vault auth enable userpass ``` + + This enables the userpass auth method at `auth/userpass`. To enable it at a different path, use the `-path` flag: + + ```shell-session + $ vault auth enable -path= userpass + ``` 1. Configure it with users that are allowed to authenticate: - ```text - $ vault write auth/userpass/users/mitchellh \ + ```shell-session + $ vault write auth//users/mitchellh \ password=foo \ policies=admins ``` @@ -81,6 +87,7 @@ management tool. associated with the "admins" policy. This is the only configuration necessary. + ## API The Userpass auth method has a full HTTP API. Please see the [Userpass auth