FortiPAM
FortiPAM allows you to protect, isolate and secure privileged account credentials, manage and control privileged user access, and monitor and record privileged account activity.
alissonfreire
Article Id 355994
Description

This article describes how to fix the password changer for a Unix secret when the server language is set to any non-English, such as Portuguese or Spanish.

Scope

FortiPAM.

Solution

While trying to change the password for a Unix secret using the template “Unix Account (SSH Password)”, the following error occurs:

 

Password change failed (Secret server password change error. [ERROR] Not Matched at step(3)).

 

alissonfreire_0-1730936032683.png

 

Running a debug as per this article Troubleshooting Tips: How to debug password changing failure reason and debug, it is possible to see that FortiPAM is expecting the word 'password' but the server is returning 'Atual senha' in this specific example, which means password in Portuguese.

 

alissonfreire_1-1730936032686.jpeg

 

To fix it, clone the password changer 'SSH Password (Unix)' under 'Secret Settings – Password Changers'.

Once cloned, edit commands 3, 5, 7, and 9 as per the example below.

 

alissonfreire_2-1730936032699.png

 

For commands 3, 5, and 7, edit each one as per the suggestion below and save.

 

Response = assword: | senha:

Interpretation = Regex

 

alissonfreire_3-1730936032700.png

 

For command 9, edit as following and save.

 

Response = successfully | sucesso

Interpretation = Regex

 

alissonfreire_4-1730936032701.png

 

Save this password changer with the modifications previously done. It should be similar to the example below.

Note: The following example covers both English and Portuguese. Adapt as needed.

 

alissonfreire_5-1730936032704.png

 

Now it is time to clone the Template 'Unix Account (SSH Password)' under 'Secret Settings – Templates'.

Once cloned, select the cloned Password Changer of the previous step and save.

 

alissonfreire_6-1730936032714.png

 

The last step is to change the Template of the Unix Secret under 'Secrets – Secret List', select the desired Secret, and select Edit. Apply the cloned template and save.

 

alissonfreire_7-1730936032722.png

 

Under 'Log & Report – Secret – Password Changes', validate that the password was successfully changed.

 

alissonfreire_8-1730936032723.png