Skip to main content
Aiko1979
Explorer
Aug 14, 2024 4:47 PM UTC
Question

Fortigate Radius

Hello Everyone, 

 

I'm trying to set up Radius for Fortigate logins and I'm having an issue. When I run the authentication tests from the GUI, it says its successful, but then when trying to login to the device, I get the message "Authentication failure." Its really quick too as if its looking for a local account. Any help would be appreciated. 

 

Thanks!

8 replies

johnathan
Staff
Staff
Aug 14, 2024 5:27 PM UTC

What RADIUS server are you using? The most common cause of that is the RADIUS server not sending back the group information in the Access-Accept.
See this article for NPS: https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-define-group-based-authorization/ta-p/198062

Never trust a computer you can't throw out a window.
Toshi_Esumi
SuperUser
SuperUser
Aug 14, 2024 5:41 PM UTC

You used "Test User Credentials" button, instead of "Test Connectivity", from the GUI when you tested it, right? Then the credential (username/password) is fine. Then probably your group config and/or admin config might have a problem.
Show us both in CLI or GUI. In CLI, those are under "config user group" and "config system admin".

Toshi

Aiko1979
Aiko1979Author
Explorer
Aug 14, 2024 5:53 PM UTC

Correct, "Test User Credential" works in the GUI. 

 

 

Here you are:

Test-FG40-1 # config user group

Test-FG40-1 (group) # sh
config user group
edit "SSO_Guest_Users"
next
edit "Guest-group"
set member "guest"
next
edit "NPS_FGT_Admins"
set member "RADIUS"
next
end

 

Test-FG40-1 # conf sys admin
Test-FG40-1 (admin) # sh
config system admin
edit "admin"
set trusthost1 10.0.0.0 255.0.0.0
set trusthost2 172.16.0.0 255.240.0.0
set trusthost3 192.168.0.0 255.255.0.0
set accprofile "super_admin"
set vdom "root"
set password ENC <password>
next
end

 

Aiko1979
Aiko1979Author
Explorer
Aug 14, 2024 5:58 PM UTC

I just figured it out after I replied. I needed to add the admin account for RADIUS. I appreciate your help!

FortiArt
Staff
Staff
Aug 14, 2024 9:27 PM UTC
WesleyEli
New Member
Aug 29, 2024 9:52 AM UTC

When I try to log in to the Fortigate device, I get an "Authentication failure" message almost instantly, as if it’s bypassing the RADIUS server and checking for a local account instead.

Toshi_Esumi
SuperUser
SuperUser
Sep 9, 2024 5:01 PM UTC

You can't remote-authenticate a username, which exists in local admin config such as "admin". FGT looks up local admins first, before contacting the radius server based on "set wildcard enable" I showed in the radius admin user config.
If you want to confirm, you can always sniff packet like below:
 diag sniffer packet any "port 1812" 4 0 l
to see if the auth request packets are going out.

Toshi

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT