This repository has been archived by the owner on Nov 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from wintoncode/support_authorization_header
Support Authorization header
- Loading branch information
Showing
2 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ $ vault write sys/plugins/catalog/kerberos-auth-plugin sha_256="$(shasum -a 256 | |
2. Enable the Kerberos auth method: | ||
|
||
```sh | ||
$ vault auth-enable -path=kerberos -plugin-name=kerberos-auth-plugin plugin | ||
$ vault auth-enable -path=kerberos -plugin-name=kerberos-auth-plugin -passthrough-request-headers=Authorization plugin | ||
Successfully enabled 'kerberos' at 'kerberos'! | ||
``` | ||
|
||
|
@@ -77,7 +77,7 @@ base64 vault.keytab > vault.keytab.base64 | |
vault write auth/kerberos/config [email protected] service_account="your_service_account" | ||
``` | ||
|
||
4. Optionally configure LDAP backend to look up Vault policies. | ||
4. Configure LDAP backend to look up Vault policies. | ||
Configuration for LDAP is identical to the [LDAP](https://www.vaultproject.io/docs/auth/ldap.html) | ||
auth method, but writing to to the Kerberos endpoint: | ||
|
||
|
@@ -86,6 +86,9 @@ vault write auth/kerberos/config/ldap @vault-config/auth/ldap/config | |
vault write auth/kerberos/groups/example-role @vault-config/auth/ldap/groups/example-role | ||
``` | ||
|
||
In non-kerberos mode, the LDAP bind and lookup works via the user that is currently trying to authenticate. | ||
If you're running LDAP together with Kerberos you might want to set a binddn/bindpass in the ldap config. | ||
|
||
## Developing | ||
|
||
If you wish to work on this plugin, you'll first need | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters