Custom password changers

Custom password changers enable defining a set of commands executed on a remote host in order to change the password.


Defining a custom password changer


  1. Select Management > Password changers.
  2. Select Custom changers tab.
  3. Click Add.
  4. Define the password changer’s name.
  5. Click i to add a command.
  1. Enter command.

Note

Commands allow usage of variables listed in the List of available variables section. Variables encapsulated in %% charachters will be replaced in all commands (e.g. %%host%%).

  • host - IP address or hostname of the target system (using hostname requires configuring DNS server)
  • port - port number
  • login - user login
  • secret - current user password
  • new_secret - new password
  1. Provide optional comments.
  2. Repeat steps 5 through 7 to add additional commands.

Note

Drag and drop each command to change the execution order.

../../_images/command_and_conquer.gif
  1. Repeat steps 5 through 8 and define a password verification commands in the Password verification commands list section.
  1. Click Save.
  1. Define password change policy and assign the password changer to account.

Note

Example

In this password changer example, the password is changed is triggered with the passwd command, followed by the current password string secret and the new secret repeated twice new_secret. The last command creates a file, which is later used to verify that the password has been changed successfully.

Password change

  1. passwd
  2. %%secret%%
  3. %%new_secret%%
  4. %%new_secret%%
  5. touch /tmp/%%login%%.passwd-changed

Password verification

  1. stat /tmp/%%login%%.passwd-changed | | exit 1
  2. touch /tmp/%%login%%.passwd-verified

Editing a custom password changer


  1. Select Management > Password changers.
  2. Select Custom changers tab.
  3. Click the name of desired password changer.
  4. Edit selected commands.
  5. Click i to remove selected command.
  6. Click Save.

Deleting a custom password changer


  1. Select Management > Password changers.
  2. Select Custom changers tab.
  3. Select desired elements and click Delete.
  4. Confirm deleting selected objects.

Related topics: