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.
// A RADIUS server entry sets a server address (config user radius)#[evaluate_block]scope: ^config user radius$all: - regex: '/^\s*set server "?[^"\s]/m'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" nextendWhy: The RADIUS entry has a server address.
config system password-policy set status enable set apply-to admin-password set minimum-length 12endWhy: 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:
| Config | Rule result | Overall result |
|---|---|---|
| Passing config | pass | PASS |
| Failing config | fail | FAIL |
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.
// 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 12config 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 1endWhy: The policy is on and needs 12 characters.
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 1endWhy: The minimum length is 8, not 12.
Expected result in rConfig, with this rule as the only rule in a definition:
| Config | Rule result | Overall result |
|---|---|---|
| Passing config | pass | PASS |
| Failing config | fail | FAIL |
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.
Related reference
- Fortinet FortiOS policy templates: every rule in
fortios-aaa.policy, its references and known limitations. - Policy Definitions: the definition file format and every method.
- Policy Assignments: run a definition against your devices.
- Policy Compliance Results: read the pass and fail results.