Skip to content

Commit

Permalink
backport of commit ccf9492 (hashicorp#20204)
Browse files Browse the repository at this point in the history
Co-authored-by: Niranjan Shrestha <niranjanshr13@users.noreply.github.com>
  • Loading branch information
1 parent d7c9d2b commit 004abbf
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions website/content/docs/auth/userpass.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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=<path> userpass
```

1. Configure it with users that are allowed to authenticate:

```text
$ vault write auth/userpass/users/mitchellh \
```shell-session
$ vault write auth/<userpass:path>/users/mitchellh \
password=foo \
policies=admins
```
Expand All @@ -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
Expand Down

0 comments on commit 004abbf

Please sign in to comment.