Skip to main content
rtichkule
Staff
Staff
May 29, 2023 5:15 AM UTC

Technical Tip: User password policy

  • Apr 16, 2026 12:10 PM UTC
  • 0 replies
  • 12034 views
  • Translate All
Description This article describes how to configure a user password policy.
Scope FortiGate, FortiPAM.
Solution

Configure password expiry and warning for the local users, with users being prompted to change passwords upon expiry. 

 

The below KB article will help to create a local user: Technical Tip: Local user authentication.

 

Create a password policy through the CLI:


Screenshot 2023-05-27 224418.png

 

Default expiry days are 180, and the range available to configure is from 0 to 999 days.

Similarly, default warning days are 15, and the range available is from 0 to 30 days.

 

Post-configuring the password policy, map it to the local user as below.

 

Screenshot 2023-05-27 224513.png

 

Add the user to the firewall policy for the authentication.

 

Screenshot 2023-05-27 224617.png

 

The result can be seen below:

 

cred.png

 

expired.png

 

The password can be changed from the captive portal.

 

Additional note: If, after upgrading to branch v7.4, the password policy is not effective even though the configuration is still there, the following option must be enabled via CLI:

 

config user password-policy

    edit 1

        set expire-status enable

    next

end

 

Notes:

  1. From the warning day, the user can renew the password.
  2. The password policy to renew the passwords is applicable only for local users part of the captive portal, SSL VPN, and local admin users. For local users configured for dial-up VPN, password renewal will not work as of the current design. 

 

There are scenarios where the FortiPAM tool is used for managing password rotation. In such cases, it is not necessary to enable the password expiry policy on FortiGate.

 

The FortiPAM tool can handle the rotation, ensuring that passwords are changed regularly and securely.

 

However, it is recommended to keep password complexity rules enabled on the FortiGate. This ensures that any passwords set or changed directly on the FortiGate meet the required security standards, regardless of the FortiPAM tool's management.

 

Consider the following factors below when using the FortiPAM tool for managing password rotation on FortiGate:

Integration: Ensure that the PAM tool is fully integrated with FortiGate and that it can manage all necessary aspects of password rotation without conflicts.

Security: Evaluate the security policies and compliance requirements of the organization to determine the best approach.

 

Related documents:

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024