Technical Tip: Resolving password requirement for new user creation on FortiGate
| Description | This article describes the issue where the error 'password must be set object set operator error, -204 discard the setting Command fail. Return code 1' appears when configuring an administrator account without a password, and provides steps to resolve it. |
| Scope | FortiGate. |
| Solution | When attempting to configure an administrator account on FortiOS without specifying a password, an error like the following may occur:
config system admin next
This occurs because an active system password-policy enforces a local password requirement, even for remote-auth accounts where no local password is intended.
config system password-policy
To avoid encountering this error, the password policy can be disabled. However, it is generally not advisable to remove password policy enforcement from the configuration, as it weakens overall security. |
