Technical Tip: Restrict local admin authentication when remote authentication server is running
Description
This article describes how to restrict local admin authentication when a remote authentication server is running.
Â
Scope
Â
FortiGate.
Solution
config system global
   set admin-restrict-local {enable | disable}
endDefault is set to disable.
Â
Behavior before FortiOS v7.2.0 :
If enabled, as long as any remote server is available on FortiGate (TACACS, LDAP, or RADIUS) is up and running, local admin authentication will be blocked. Local admins will be allowed access only if no remote server is detected.
Â
Behavior from FortiOS v7.2.0:
If enabled, FortiGate now only checks if all remote authentication servers applied in 'system admin'Â Â are down, instead of all remote servers configured on the FortiGate, before allowing local administrators to log in.
Â
Note:
This setting applies to FortiGate GUI/CLI (ssh/telnet) access only. In both cases, console access to FortiGate would still be available using local administrators even if the remote authentication servers are up.Â
Â
Behavior from FortiOS v7.6.0:
Â
config system global
set admin-restrict-local {all | non-console-only | disable}
endDefault is disable. Â
Related document:
Restrict local administrator logins through the console
Â
Note:
The setting of 'all' applies to FortiGate GUI/CLI (ssh/telnet) and console access. If the remote authentication servers are up, the local admin account will not be available, this includes via the console.
Â
In a multi-VDOM environment, it is expected to have the management access interface and Radius server associated with the same VDOM
Behavior from FortiOS v8.0.0 :
Specific login channels can now be explicitly blocked, including Console, GUI, SSH, and Telnet. The feature provides granular control over how administrator accounts are allowed to access FortiGate.
This enables direct per-admin, per-method control instead of relying only on global local-admin restriction behavior.
A new option is available under 'config system admin' to explicitly disallow selected login methods for an administrator account.
config system admin​
edit <admin user>
set disallowed-login-methods {console | gui | ssh | telnet}
next
endMethods listed in disallowed-login-methods are blocked. All login methods not listed remain permitted by default.
Related Document:
Technical Tip: How to restrict login method for administrator account
