Skip to content
Guides & References

FortiOS AAA and password policy

Worked examples for the FortiOS AAA template: a RADIUS server with an address, and a password policy that is on with a minimum length of 12.

Policy LibraryUpdated
Platform
fortinet-fortios
Minimum version
rConfig 8.3.0
Editions
Pro, Vector, Enterprise
On this page

FortiOS AAA and password policy

Rules for how admins prove who they are. A central RADIUS server means one place to add and remove people. A password policy stops short local passwords. They come from the fortios-aaa policy template.

Every example on this page was checked with rConfig Pro's policy engine on

Each of the 4 configs below was run through rConfig Pro’s evaluator with the rule above it, and gave the result shown. The configs are sanitised excerpts of the sample configs that come with the template. A card marked changed has one line edited to show a failure.

All the rules come from fortios-aaa.policy in the policy templates (v1.5.0). Import the whole file with Import Templates (see importing a policy template), or copy one rule into your own definition. The Fortinet FortiOS templates page lists the file’s known limitations. Run the rules against show full-configuration.

Rule Method Since
RADIUS server evaluate_block 8.3.0
Password policy, 12 characters or more evaluate_block 8.3.0

RADIUS server

This rule checks every config user radius block. Each one needs a set server line with an address or name. A config with no RADIUS block fails, because the rule’s scope finds nothing to check.

Definition
// A RADIUS server entry sets a server address (config user radius)
#[evaluate_block]
scope: ^config user radius$
all:
- regex: '/^\s*set server "?[^"\s]/m'
passPassing config: Hardened FortiGate 60F sample (FortiOS 7.4.4, synthetic)
config user radius
edit "RADIUS-01"
set server "192.0.2.30"
set secret ENC EXAMPLEONLYRadiusSecret0001
set auth-type auto
set source-ip "192.0.2.6"
next
end

Why: The RADIUS entry has a server address.

failFailing config: FortiGate 100F sample (FortiOS 7.4.4, synthetic)
config system password-policy
set status enable
set apply-to admin-password
set minimum-length 12
end

Why: There is no config user radius block at all. The reason says no config block matched the scope.

Expected result in rConfig, with this rule as the only rule in a definition:

ConfigRule resultOverall result
Passing configpassPASS
Failing configfailFAIL

Framework mapping. The rule provides evidence towards these controls. It does not certify anything.

Framework Reference
ISO/IEC 27001:2022 Annex A A.8.5

Tested with: sample excerpts from FortiOS 7.4.4 (synthetic). Minimum rConfig 8.3.0 (evaluate_block). Editions: Pro, Vector, Enterprise.


Password policy, 12 characters or more

The password policy sets rules for local admin passwords. This rule needs the policy turned on, and a minimum length of exactly 12. It accepts either name for the setting, min-length or minimum-length.

Definition
// The password policy is enabled with a minimum length of 12 (set min-length 12 or set minimum-length 12)
#[evaluate_block]
scope: ^config system password-policy$
all:
- equals: set status enable
- any:
- equals: set min-length 12
- equals: set minimum-length 12
passPassing config: Hardened FortiGate 60F sample (FortiOS 7.4.4, synthetic)
config system password-policy
set status enable
set apply-to admin-password
set minimum-length 12
set min-lower-case-letter 1
set min-upper-case-letter 1
set min-non-alphanumeric 1
set min-number 1
end

Why: The policy is on and needs 12 characters.

failFailing config: Hardened FortiGate 60F sample (FortiOS 7.4.4, synthetic), changed: minimum-length 8 instead of 12
config system password-policy
set status enable
set apply-to admin-password
set minimum-length 8
set min-lower-case-letter 1
set min-upper-case-letter 1
set min-non-alphanumeric 1
set min-number 1
end

Why: The minimum length is 8, not 12.

Expected result in rConfig, with this rule as the only rule in a definition:

ConfigRule resultOverall result
Passing configpassPASS
Failing configfailFAIL

Framework mapping. The rule provides evidence towards these controls. It does not certify anything.

Framework Reference
NIST SP 800-53 IA-5
ISO/IEC 27001:2022 Annex A A.5.17

Tested with: sample excerpts from FortiOS 7.4.4 (synthetic). Minimum rConfig 8.3.0 (evaluate_block). Editions: Pro, Vector, Enterprise.


Type to search.