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)).
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.
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.
For commands 3, 5, and 7, edit each one as per the suggestion below and save.
Response = assword: | senha: Interpretation = Regex
For command 9, edit as following and save.
Response = successfully | sucesso Interpretation = Regex
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.
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.
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.
Under 'Log & Report – Secret – Password Changes', validate that the password was successfully changed.
|
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.