Skip to main content
azhunissov
Staff
Staff
Aug 25, 2010 12:04 PM UTC

Troubleshooting Tip: FortiGate admin account with RADIUS authentication and fallback to local password

  • Aug 17, 2026 1:40 PM UTC
  • 3 replies
  • 25429 views
  • Translate All

Description

This article describes how to configure a FortiGate administrator account to use a RADIUS server for authentication while allowing authentication with a local backup password when the RADIUS server is unavailable.

Scope

FortiGate.

Solution

Note:

This configuration requires a local administrator account to be created on the FortiGate.

If local administrator accounts should not be used and authentication should rely only on accounts configured on the RADIUS server, refer to the related article listed at the end of this article.

RADIUS server configuration:

config user radius
    edit "FACVM"
        set server "172.16.190.100"
        set secret SUPERSECRETPASSWORD
        set auth-type ms_chap_v2
    next
end


Create a user group associated with the RADIUS server:

config user group
    edit "radiusgroup"
        set member "FACVM"
            config match
                edit 1
                    set server-name "FACVM"
                    set group-name "radiusgroup"
                next
            end
    next
end


Configure the administrator account to use remote authentication and specify a local backup password:

config system admin
    edit "radiusadmin"
        set remote-auth enable
        set accprofile "super_admin"
        set vdom "root"
        set remote-group "radiusgroup"
        set password fortinetlocal
    next
end


Starting from FortiOS v7.6, the current administrator password must be entered when configuring or changing the local backup password:

FGT (radiusadmin) # set password fortinetlocal
Please enter current administrator password: ********


After the password is configured, it is stored in encrypted form in the FortiGate configuration:

config system admin
    edit "radiusadmin"
        set remote-auth enable
        set accprofile "super_admin"
        set vdom "root"
        set remote-group "radiusgroup"
        set password ENC PB2pkgmrhih4Yj27wmP1LsC7JRYtjkAhBdvVDhJxeAyzkFk98yNz60ZjQQ7JTnc4XUq4FUGS9PGMj9v9SVl6G/TokkyE8M0K0n00QrpmV/mNu4=
    next
end

 

Verification:

The following scenarios can be used to verify the configuration.

  1. The RADIUS server is available.


When the RADIUS server is available, log in to the FortiGate using the RADIUS credentials: radiususer1 / radiuspassword.


Access should be granted.

diagnose debug application fnbamd -1
diagnose debug enable

[2274] handle_req-Rcvd auth req 457812065 for radiususer1 in radiusgroup opt=00010001 prot=10
[398] __compose_group_list_from_req-Group 'radiusgroup'
[614] fnbamd_pop3_start-radiususer1
[608] __fnbamd_cfg_get_radius_list_by_group-Loading RADIUS server 'FACVM' for usergroup 'radiusgroup' (10)
[305] fnbamd_create_radius_socket-Opened radius socket 15
[305] fnbamd_create_radius_socket-Opened radius socket 16
[1342] fnbamd_radius_auth_send-Compose RADIUS request
[1309] fnbamd_rad_dns_cb-172.16.190.100->172.16.190.100
[1284] __fnbamd_rad_send-Sent radius req to server 'FACVM': fd=15, IP=172.16.190.100(172.16.190.100:1812) code=1 id=128 len=164 user="radiususer1" using MS-CHAPv2
[282] radius_server_auth-Timer of rad 'FACVM' is added
[718] auth_tac_plus_start-Didn't find tac_plus servers (0)
[439] ldap_start-Didn't find ldap servers (0)
[557] create_auth_session-Total 1 server(s) to try
[2406] fnbamd_auth_handle_radius_result-Timer of rad 'FACVM' is deleted
[1750] fnbamd_radius_auth_validate_pkt-RADIUS resp code 2
[309] extract_success_vsas-FORTINET attr, type 1, val radiusgroup
[2432] fnbamd_auth_handle_radius_result
Result for radius svr 'FACVM' 172.16.190.100(1) is 0  --> 0=Authetication successful, 1=Authentication failed.
[2356] fnbamd_radius_group_match-Passed group matching
[1031] find_matched_usr_grps-Group 'radiusgroup' passed group matching
[1032] find_matched_usr_grps-Add matched group 'radiusgroup'(10)

 

  1. RADIUS server is unavailable, and the RADIUS password is used.


When the RADIUS server is unavailable, attempt to log in using the RADIUS credentials: radiususer1 / radiuspassword.

Access should be denied because the FortiGate cannot validate the password against the unavailable RADIUS server.

diagnose debug application fnbamd -1
diagnose debug enable

# [2274] handle_req-Rcvd auth req 457812067 for radiususer1 in radiusgroup opt=00010001 prot=10
[398] __compose_group_list_from_req-Group 'radiusgroup'
[614] fnbamd_pop3_start-radiususer1
[608] __fnbamd_cfg_get_radius_list_by_group-Loading RADIUS server 'FACVM' for usergroup 'radiusgroup' (10)
[305] fnbamd_create_radius_socket-Opened radius socket 15
[305] fnbamd_create_radius_socket-Opened radius socket 16
[1342] fnbamd_radius_auth_send-Compose RADIUS request
[1309] fnbamd_rad_dns_cb-172.16.190.100->172.16.190.100
[1284] __fnbamd_rad_send-Sent radius req to server 'FACVM': fd=15, IP=172.16.190.100(172.16.190.100:1812) code=1 id=130 len=164 user="radiususer1" using MS-CHAPv2
[282] radius_server_auth-Timer of rad 'FACVM' is added
[718] auth_tac_plus_start-Didn't find tac_plus servers (0)
[439] ldap_start-Didn't find ldap servers (0)
[557] create_auth_session-Total 1 server(s) to try
[47] handle_rad_timeout-rad 'FACVM' 172.16.190.100 timed out, resend request.
[1284] __fnbamd_rad_send-Sent radius req to server 'FACVM': fd=15, IP=172.16.190.100(172.16.190.100:1812) code=1 id=130 len=164 user="radiususer1" using MS-CHAPv2
[63] handle_rad_timeout-Timer of rad 'FACVM' is added
[3197] handle_auth_timeout_with_retry-Retry
[396] radius_stop-Timer of rad 'FACVM' is deleted
[1039] fnbamd_auth_retry-svr_type = 2
[608] __fnbamd_cfg_get_radius_list_by_group-Loading RADIUS server 'FACVM' for usergroup 'radiusgroup' (10)
[341] radius_start-Didn't find radius servers (0)
[3215] handle_auth_timeout_with_retry-retry failed

 

  1. RADIUS server is unavailable, and the local backup password is used.


When the RADIUS server is unavailable, log in using the same administrator username but with the configured local backup password: radiususer1 / fortinetlocal.

Access should be granted.

The FortiGate first attempts to authenticate the administrator against the RADIUS server. If the RADIUS server does not respond, FortiGate falls back to the configured local backup password.

A list of administrators who were connected before logging: radiususer1/fortinetlocal:

execute time
current time is: 16:41:20
last ntp sync:Fri May  30 16:16:18 2025

get sys info admin  status
Index  User name   Login type  From
Logged in users: 3
USERNAME        TYPE    FROM             TIME
admin           https  172.26.228.45     Fri May 30 16:10:18 2025

admin           https  172.26.228.45     Fri May 30 16:24:18 2025

admin           ssh    10.5.28.86        Fri May 30 16:25:11 2025

 

The fnbamd debug output can also be used to confirm that the RADIUS authentication attempt timed out before authentication using the local backup password succeeded:

diagnose debug application fnbamd -1
diagnose debug enabl
# [2274] handle_req-Rcvd auth req 457812070 for radiususer1 in radiusgroup opt=00010001 prot=10
[398] __compose_group_list_from_req-Group 'radiusgroup' 
 [341] radius_start-Didn't find radius servers (0)
[3215] handle_auth_timeout_with_retry-retry failed

 

Time and list of connected administrators after connecting with the radiususer1/fortinetlocal:

execute time
current time is: 16:56:20
last ntp sync: Fri May  30 16:16:18 2025

get sys info admin  status
Index  User name   Login type  From
Logged in users: 4
USERNAME        TYPE    FROM             TIME
admin           https  172.26.228.45     Fri May 30 16:10:18 2025

admin           https  172.26.228.45     Fri May 30 16:24:18 2025

admin           ssh    10.5.28.86        Fri May 30 16:25:11 2025

radiususer1     http    10.5.28.86       Fri May 30 16:53:11 2025

 

Related articles:

3 replies

New Member
Jul 7, 2026 7:52 AM UTC

There is no command “set password ” in version 7.6.6
Is it still possible? How can we set this backup local password now?

Translate
azhunissov
Staff
Staff
Aug 17, 2026 10:59 AM UTC

Hi, 

Thanks for your comment. 

The command “set password” should be avaialble in FortiOS 7.6.6:

 # get  system  status
Version: FortiGate-VM64 v7.6.7,build3704,260601 (GA.M)

    edit "remote_admin"
        set vdom "root"
        set remote-auth enable
        set accprofile "super_admin"
        set remote-group "radiusgroup"
        set password ENC PB2TmgH2MuVgITP83HQkSC02cGb381NrtHrDT/t5fBZcemr3HbY2sE8zC750nx8cAe+zdtlBR9+HXcwGMU/Qg8ayDignfsHXhzWHk+xE0HW0sQ=
    next
end

 

Translate
Muttahar_Rehman
Explorer II
Aug 17, 2026 1:04 PM UTC

good

Translate
Thanks, R3hsec
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024