You can now generate tokens for SSH type Credential Vault resources and LDAP users using the REST APIs and from Privileged Account Manager console.
To generate and use the token from the Privileged Account Manager console, a new Tokens page has been introduced for a consolidated view of all the user tokens, click
> Tokens to access this page.
Click + Generate Token to proceed further.
Select the Resource for which you want to generate token.
In the Generate Token page, set a date for when you want the token to expire using the Set Expiry option or set Never if you want the token to never expire.
Enter the Token Name.
Add a host name if you want to access the token from a specific host, else select Any Host to access from any host.
NOTE:You can add host names using either enter, space bar, or comma.
Click Generate Token.
All the functionalities work using REST APIs of tokens.
Follow the procedure to generate and use the token using the REST API.
Log in to Privileged Account Manager console as a local user or as an LDAP user.
Click on REST API from the username drop down option on the top right corner of the Privileged Account Manager user interface.
Go to Authentication Token and create a new token using POST /rest/auth/Token.
Example:
{
"vault_id": "linuxsles15sp3din",
"name": "API Token SSH"
}
Refer to the swagger doc for more options such as, hosts, expiry_time, status.
Go to My Access > Tokens from Privileged Account Manager console. You can view the token you generated.
Copy the token using the copy icon.
Start an SSH Relay session using following command:
ssh -t -p 2222 user@pamip
On the password prompt, enter the above generated token instead of the user's password to get authenticated.
NOTE:This tokens functionality does not work if you have configured Advanced Authentication.
NOTE:A token is associated with a Credential Vault resource, therefore the token can be used against that resource only for logging in. Any other token used for this purpose will not be accepted.