Posthook

Posthook feature allows to run a script after the password modification.

The script is called with two parameters: login and new password.

Parameters

Define posthook script (and enable the feature):

$posthook = "/usr/share/service-desk/posthook.sh";

Define which attribute will be used as login:

$posthook_login = "uid";

Display posthook error:

$display_posthook_error = true;

Encode passwords sent to posthook script as base64:

$posthook_password_encodebase64 = true;

Tip

This will prevent alteration of the passwords if set to true. To read the actual password in the posthook script, use a base64_decode function/tool.