Skip to main content
hrahuman_FTNT
Staff & Editor
Staff & Editor
September 16, 2009

Technical Tip: Strong Password 'Password Policy' feature

  • September 16, 2009
  • 0 replies
  • 21092 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. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!