Skip to main content
turipriv
Explorer
Mar 19, 2024 3:04 PM UTC
Solved

Unable to authenticate radius users

Greetings,

 

I am configuring RADIUS authentication on my Fortigate 101F running FortiOS Version 7.4.3.

 

The Microsoft NPS Server has been configured according to this guide.

 

My radius configuration is as follows:

 

config user radius
edit "RADIUS"
set server "172.16.9.3"
set secret PSK
set nas-ip x.x.x.x
set auth-type ms_chap_v2
set source-ip "x.x.x.x"
next
end

 

The connection between the Fortigate and the NPS is successful, but test user credentials test fails.

 

The CLI test output is as follows:

 

diagnose test authserver radius RADIUS mschap2 user password
authenticate 'user' against 'mschap2' failed, assigned_rad_session_id=1486429090 session_timeout=0 secs idle_timeout=0 secs!

 

Running a packet capture between the Firewall and the Radius Server I get an access-reject response with the following MS-CHAP error

 

Code: 3
ID: 190
Length: 42
Auth: 91 C7 F9 28 0A 50 59 33 13 39 B3 75 58 04 AC EE
AVP: l=22 t=Vendor-Specific(26) v=Microsoft(311)
VSA: l=16 t=MS-CHAP-Error(2)
Value: '<00>E=649 R=0 V=3'

 

Any insight would be much appreciated.

 

Thanks in advance.

pminarik
pminarikAnswer
Staff
Mar 25, 2024 11:22 AM UTC

What does the NPS log on the Windows server say about?

The error code is very specific and should be very clear, so I would rather trust the NPS. No offense intended. :)

 

On the NPS server: Event Log Viewer > Custom Views > Server Roles > Network and Policy Access Services.

Find the entry/entries for the rejected attempt. Check what it says. Also pay close attention to and check what rule/policy the attempt matched. (if you have multiple, maybe the matching is not as you expect)

8 replies

AEK
SuperUser
SuperUser
Mar 20, 2024 10:03 AM UTC

Hi

Can you test user credentials by entering "domain\user" as user instead of "user"?

AEK
turipriv
turiprivAuthor
Explorer
Mar 25, 2024 9:21 AM UTC

Hi,

 

yes I tried that too, but unfortunatelly I got the same error message.

testrRadius.png

pminarik
Staff
Staff
Mar 20, 2024 10:11 AM UTC

From MS-CHAPv2 RFC 2759.

649 ERROR_NO_DIALIN_PERMISSION 

 This is related to the "dial-in" property of AD users.

You can edit that in each user's Properties > Dial-in tab. (allow | deny | control based on NPS policy)

You can also set the Network Policy in NPS itself to ignore the dialin property. (Overview tab, section "Access Permission").

 

user_dialin_property.pngNPS_policy.png

turipriv
turiprivAuthor
Explorer
Mar 25, 2024 9:14 AM UTC

Hi,

 

thank you for your feedback and sorry for my late reply. Unfortunately, both the options you pointed out are already selected in the NPS.

 

 

pminarik
Staff
pminarikAnswer
Staff
Mar 25, 2024 11:22 AM UTC

What does the NPS log on the Windows server say about?

The error code is very specific and should be very clear, so I would rather trust the NPS. No offense intended. :)

 

On the NPS server: Event Log Viewer > Custom Views > Server Roles > Network and Policy Access Services.

Find the entry/entries for the rejected attempt. Check what it says. Also pay close attention to and check what rule/policy the attempt matched. (if you have multiple, maybe the matching is not as you expect)

turipriv
turiprivAuthor
Explorer
Apr 5, 2024 8:58 AM UTC

Greetings everyone,

 

for some reason I fail to understand, the NPS event viewer was not displaying any error messages whatsoever.

 

Anyway, what I found out is that there was indeed a mismatch in policy due to an incorrect policy ordering.

 

Once the Fortinet-related policy was ranked-up everything warked fine.

 

Thanks everyone for your insight.

amg7
Visitor III
Jul 16, 2024 10:32 AM UTC

Hello, can you tell me what you did to solve it? Do you mean the policies in the Fortinet or the NPS policies?

Thanks
Regards

turipriv
turiprivAuthor
Explorer
Aug 5, 2025 4:13 PM UTC

Sorry for this very late reply. The issue was the policy ordering in the NPS server. Once the appropriate oerder was set up, authentication was succesful.

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