Fortinet white logo
Fortinet white logo

CLI Reference

config user password-policy

config user password-policy

Configure user password policy.

config user password-policy
    Description: Configure user password policy.
    edit <name>
        set expire-days {integer}
        set expired-password-renewal [enable|disable]
        set warn-days {integer}
    next
end

config user password-policy

Parameter

Description

Type

Size

expire-days

Time in days before the user's password expires.

integer

Minimum value: 0 Maximum value: 999

expired-password-renewal

Enable/disable renewal of a password that already is expired.

option

-

Option

Description

enable

Enable renewal of a password that already is expired.

disable

Disable renewal of a password that already is expired.

name

Password policy name.

string

Maximum length: 35

warn-days

Time in days before a password expiration warning message is displayed to the user upon login.

integer

Minimum value: 0 Maximum value: 30

config user password-policy

config user password-policy

Configure user password policy.

config user password-policy
    Description: Configure user password policy.
    edit <name>
        set expire-days {integer}
        set expired-password-renewal [enable|disable]
        set warn-days {integer}
    next
end

config user password-policy

Parameter

Description

Type

Size

expire-days

Time in days before the user's password expires.

integer

Minimum value: 0 Maximum value: 999

expired-password-renewal

Enable/disable renewal of a password that already is expired.

option

-

Option

Description

enable

Enable renewal of a password that already is expired.

disable

Disable renewal of a password that already is expired.

name

Password policy name.

string

Maximum length: 35

warn-days

Time in days before a password expiration warning message is displayed to the user upon login.

integer

Minimum value: 0 Maximum value: 30