You can define customized templates to carry out remote password resets on devices that can be connected through Secure shell (SSH) such as Linux devices, routers, server hardware, etc. You can define a command or a sequence of commands to be used for carrying out the password reset activity in the form of a template.
Typically, the same template can be used for multiple devices that follow the same commands. So, after defining the templates, you can associate them with the required account types in PAM.
To create an SSH template, navigate to Admin >> Account Management >> SSH Templates for Password Reset in the GUI.
Click on ‘Add Template’. In the GUI that opens, you need to specify the attributes for the template creation. You will have two options - one to enable remote password verification and another to create a command sequence for password reset.
Templates can be created for two types of activities - (1) for verifying if the password stored in Securden is in synchronization with the actual password on the resource, and (2) for carrying out a remote password reset. You can choose either or both.
You have the option to verify the password if it is in sync with the password for the account on the remote device. This can be done either via remote login or you can define a command sequence to be run which will check for verification.
You can verify if the password stored in Securden is in synchronization with the actual password on the remote resource. This can be done either by trying to remotely log into the device or by defining a command sequence to be executed. Select an option that works best for you.
When ‘Enable remote password verification’ is chosen:
A sequence of commands is given to the remote machine to perform password verification. You can use the placeholders for replacing the attributes in the respective commands:
Example:
sudo passwd {%ACCOUNT_NAME%} {%PRIVILEGED_ACCOUNT_PASSWORD%} {%NEW_PASSWORD%} {%NEW_PASSWORD%}
{%REMOTE_LOGIN_ACCOUNT_NAME%} - Name of the account for remotely logging in to the IT asset.
{%REMOTE_LOGIN_ACCOUNT_PASSWORD%} - Password of the remote login account.
{%PRIVILEGED_ACCOUNT_NAME%} - Name of the account that has privileges to do remote operations.
{%PRIVILEGED_ACCOUNT_PASSWORD%} - Password of the privileged account.
{%ACCOUNT_NAME%} - Name of the account on which remote operations are to be performed.
{%ACCOUNT_PASSWORD%} - Old password of the account on which remote operations are to be performed.
{%NEW_PASSWORD%} - The new password to be assigned for the account.
You can configure remote password reset for any SSH-enabled device. Typically, you will be defining the required command or a sequence of commands to be run to carry out password reset in the template. You can make use of certain placeholders in the command and Securden will fill the values at runtime.
To configure a template for remote password reset,
Example of a command sequence to reset password:
sudo passwd {%ACCOUNT_NAME%} {%PRIVILEGED_ACCOUNT_PASSWORD%}
{%ACCOUNT_PASSWORD%} {%NEW_PASSWORD%}
You may use the following placeholders for replacing the attributes in the respective commands:
Important Note: For security reasons, the template created by one administrator will have to be approved by another administrator before it can be put to use.
The templates created in Securden can be edited or deleted anytime from the GUI. This can be done by clicking the “Actions” icon. You can perform the following actions:
The templates that are duly approved by another administrator, can be associated with the required account types. Once you associate, the accounts belonging to that specific type will get remote password reset and/or password synchronization verification capabilities.
Templates can be associated when creating a new account type. They can’t be associated with existing account types.
To associate a template, you need to create a new account type. To do that, navigate to Admin >> Account Management >> Account Types and click the ‘Add’. In the GUI that opens, you will see a drop-down named ‘Template’. You may select the template to be associated.