Skip to main content
hrahuman_FTNT
Staff & Editor
Staff & Editor
Sep 16, 2009 8:32 PM UTC

Technical Tip: Strong Password 'Password Policy' feature

  • Apr 16, 2026 12:35 PM UTC
  • 0 replies
  • 21169 views

Description


This article describes that since FortiOS 4.0 MR1, there is a new feature that enables FortiGate administrator passwords to adhere to strict requirements. This includes proper aging attributes attached, so that passwords must be changed on a continual basis.

 
Scope
 
FortiGate.


Solution

 

To enable password options:

  1. Go to System -> Admin -> Setting.
  2. Select Enable for the Password Policy, and edit the options as required.


To enable using CLI:

 

config system password-policy

        set status enable
    end

For version V4.0 MR1:

 

#FGT (password-policy) # get


status : enable
apply-to : admin-password
minimum-length : 8
must-contain :
change-4-characters : disable
expire : 0
 
config system password-policy
  set status [enable | disable] # default is disable
  set apply-to [admin-password ipsec-preshared-key] # default is admin-password
  set minimum-length xxx # default is 8
  set must-contain [lower-case-letter upper-case-letter non-alphanumeric number] # default is NULL
  set minimum-characters-change 4 #default is 0, when not zero, it requires to change at least N characters for password change
  set admin-password-expire xxx # Unit=DAYS before expire.
Default is 0, means never expire

end

 

config system admin

    edit xxx

        set password-expire YYYY-MM-DD HH:MM:SS # default 0, means never expire.

        set force-password-change [enable | disable] # initially set to disable, when set to enable, user must change his password next     time he logs in

    next

end

 

 
For version V5.4 and above:
 
config system password-policy
    set status enable  # default is disable
    set apply-to admin-password [admin-password ipsec-preshared-key] # default is admin-password
    set minimum-length 8 # default is 8
    set min-lower-case-letter 0
    set min-upper-case-letter 0
    set min-non-alphanumeric 0
    set min-number 0
    set change-4-characters disable
    set expire-status disable Default is 0, means never expire
    set reuse-password enable
end

config system admin
    edit xxx
        set password-expire YYYY-MM-DD HH:MM:SS # default 0, means never expire.
        set force-password-change [enable | disable] # initially set to disable, when set to enable, user must change his password next     time he logs in
    next
end

 
Note:
In the latest FortiOS version, both options can be specified in the GUI, but in the CLI, it is necessary to enable both options manually.
 
Screenshot 2024-12-24 10080222.png
 
Selecting only 'Admin' affects only the Admin settings. Choosing only 'IPsec' changes only the IPsec settings. Selecting both impacts both Admin and IPsec settings
 
Related articles:
Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT