ntlm_auth not being invoked

Shaun donovan shaund at teqcle.co.za
Mon Jun 7 09:22:37 CEST 2021


Hi All.

Never mind, I found my own stupid mistake. I did not add the -t mschap 
in the radtest command :-(

Thanks anyway.

Shaun.

On 2021/06/07 07:39, Shaun donovan via Freeradius-Users wrote:
> Sorry Alan.
>
> Here is the full log:
>
> (0) Received Access-Request Id 124 from 127.0.0.1:45676 to 
> 127.0.0.1:1812 length 74
> (0)   User-Name = "piet"
> (0)   User-Password = "P0mp!es"
> (0)   NAS-IP-Address = 192.168.7.203
> (0)   NAS-Port = 0
> (0)   Message-Authenticator = 0xb574f29bb2356cb5b1aa5f3b5625ae39
> (0) # Executing section authorize from file 
> /etc/raddb/sites-enabled/default
> (0)   authorize {
> (0)     policy filter_username {
> (0)       if (&User-Name) {
> (0)       if (&User-Name)  -> TRUE
> (0)       if (&User-Name)  {
> (0)         if (&User-Name =~ / /) {
> (0)         if (&User-Name =~ / /)  -> FALSE
> (0)         if (&User-Name =~ /@[^@]*@/ ) {
> (0)         if (&User-Name =~ /@[^@]*@/ )  -> FALSE
> (0)         if (&User-Name =~ /\.\./ ) {
> (0)         if (&User-Name =~ /\.\./ )  -> FALSE
> (0)         if ((&User-Name =~ /@/) && (&User-Name !~ /@(.+)\.(.+)$/))  {
> (0)         if ((&User-Name =~ /@/) && (&User-Name !~ 
> /@(.+)\.(.+)$/))   -> FALSE
> (0)         if (&User-Name =~ /\.$/)  {
> (0)         if (&User-Name =~ /\.$/)   -> FALSE
> (0)         if (&User-Name =~ /@\./)  {
> (0)         if (&User-Name =~ /@\./)   -> FALSE
> (0)       } # if (&User-Name)  = notfound
> (0)     } # policy filter_username = notfound
> (0)     [preprocess] = ok
> (0)     [chap] = noop
> (0)     [mschap] = noop
> (0)     [digest] = noop
> (0) suffix: Checking for suffix after "@"
> (0) suffix: No '@' in User-Name = "piet", looking up realm NULL
> (0) suffix: No such realm "NULL"
> (0)     [suffix] = noop
> (0) eap: No EAP-Message, not doing EAP
> (0)     [eap] = noop
> (0)     [files] = noop
> (0) sql: EXPAND %{User-Name}
> (0) sql:    --> piet
> (0) sql: SQL-User-Name set to 'piet'
> rlm_sql (sql): Reserved connection (1)
> (0) sql: EXPAND SELECT id, username, attribute, value, op FROM 
> radcheck WHERE username = '%{SQL-User-Name}' ORDER BY id
> (0) sql:    --> SELECT id, username, attribute, value, op FROM 
> radcheck WHERE username = 'piet' ORDER BY id
> (0) sql: Executing select query: SELECT id, username, attribute, 
> value, op FROM radcheck WHERE username = 'piet' ORDER BY id
> (0) sql: WARNING: User not found in radcheck table.
> rlm_sql (sql): Reserved connection (2)
> rlm_sql (sql): Released connection (2)
> Need 5 more connections to reach 10 spares
> rlm_sql (sql): Opening additional connection (6), 1 of 26 pending 
> slots used
> rlm_sql_mysql: Starting connect to MySQL server
> rlm_sql_mysql: Connected to database 'radius' on Localhost via UNIX 
> socket, server version 10.3.28-MariaDB, protocol version 10
> (0) sql: EXPAND SELECT groupname FROM radusergroup WHERE username = 
> '%{SQL-User-Name}' ORDER BY priority
> (0) sql:    --> SELECT groupname FROM radusergroup WHERE username = 
> 'piet' ORDER BY priority
> (0) sql: Executing select query: SELECT groupname FROM radusergroup 
> WHERE username = 'piet' ORDER BY priority
> (0) sql: User not found in any groups
> rlm_sql (sql): Released connection (1)
> (0)     [sql] = notfound
> (0)     [expiration] = noop
> (0)     [logintime] = noop
> (0) pap: WARNING: No "known good" password found for the user. Not 
> setting Auth-Type
> (0) pap: WARNING: Authentication will fail unless a "known good" 
> password is available
> (0)     [pap] = noop
> (0)   } # authorize = ok
> (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type = 
> Reject
> (0) Failed to authenticate the user
> (0) Using Post-Auth-Type Reject
> (0) # Executing group from file /etc/raddb/sites-enabled/default
> (0)   Post-Auth-Type REJECT {
> (0) sql: EXPAND .query
> (0) sql:    --> .query
> (0) sql: Using query template 'query'
> rlm_sql (sql): Reserved connection (3)
> (0) sql: EXPAND %{User-Name}
> (0) sql:    --> piet
> (0) sql: SQL-User-Name set to 'piet'
> (0) sql: EXPAND INSERT INTO radpostauth (username, pass, reply, 
> authdate) VALUES ( '%{SQL-User-Name}', 
> '%{%{User-Password}:-%{Chap-Password}}', '%{reply:Packet-Type}', '%S')
> (0) sql:    --> INSERT INTO radpostauth (username, pass, reply, 
> authdate) VALUES ( 'piet', 'P0mp=3D21es', 'Access-Reject', '2021-06-07 
> 07:13:41')
> (0) sql: Executing query: INSERT INTO radpostauth (username, pass, 
> reply, authdate) VALUES ( 'piet', 'P0mp=3D21es', 'Access-Reject', 
> '2021-06-07 07:13:41')
> (0) sql: SQL query returned: success
> (0) sql: 1 record(s) updated
> rlm_sql (sql): Released connection (3)
> (0)     [sql] = ok
> (0) attr_filter.access_reject: EXPAND %{User-Name}
> (0) attr_filter.access_reject:    --> piet
> (0) attr_filter.access_reject: Matched entry DEFAULT at line 11
> (0)     [attr_filter.access_reject] = updated
> (0)     [eap] = noop
> (0)     policy remove_reply_message_if_eap {
> (0)       if (&reply:EAP-Message && &reply:Reply-Message) {
> (0)       if (&reply:EAP-Message && &reply:Reply-Message)  -> FALSE
> (0)       else {
> (0)         [noop] = noop
> (0)       } # else = noop
> (0)     } # policy remove_reply_message_if_eap = noop
> (0)   } # Post-Auth-Type REJECT = updated
> (0) Delaying response for 1.000000 seconds
> Waking up in 0.3 seconds.
> Waking up in 0.6 seconds.
> (0) Sending delayed response
> (0) Sent Access-Reject Id 124 from 127.0.0.1:1812 to 127.0.0.1:45676 
> length 20
> Waking up in 3.9 seconds.
> (0) Cleaning up request packet ID 124 with timestamp +38
> Ready to process requests
>
>> Message: 2
>> Date: Fri, 4 Jun 2021 08:53:39 -0400
>> From: Alan DeKok <aland at deployingradius.com>
>> To: FreeRadius users mailing list
>>     <freeradius-users at lists.freeradius.org>
>> Subject: Re: ntlm_auth not being invoked
>> Message-ID: <FADA674B-6BA4-4C28-AAFA-33DCD569C193 at deployingradius.com>
>> Content-Type: text/plain;    charset=us-ascii
>>
>> On Jun 4, 2021, at 8:02 AM, Shaun donovan via Freeradius-Users 
>> <freeradius-users at lists.freeradius.org> wrote:
>>> I have configured FreeRADIUS Version 3.0.20 on a CentOS Linux 
>>> release 8.3.2011 machine with daloRadius. I have then followed the 
>>> instructions at 
>>> http://deployingradius.com/documents/configuration/active_directory.html 
>>> to allow FreeRADIUS to authenticate against an Active Directory.
>>>
>>> Everything works up to the point that I must remove the "testing 
>>> entry" in raddb/mods-config/files/authorize, namely the "DEFAULT 
>>> Auth-Type = ntlm_auth" and uncomment the "ntlm_auth =" line in 
>>> raddb/modules/mschap. Once I do this and test using radtest, I get:
>>>
>>> (0) pap: WARNING: No "known good" password found for the user. Not 
>>> setting Auth-Type
>>> (0) pap: WARNING: Authentication will fail unless a "known good" 
>>> password is available
>>> (0)     [pap] = noop
>>> (0)   } # authorize = ok
>>> (0) ERROR: No Auth-Type found: rejecting the user via Post-Auth-Type 
>>> = Reject
>>>
>>> from Radius -X.
>>    There's a lot more output available.  Post ALL of it.
>>
>>> I can see that it is trying to do PAP authentication, but does not 
>>> "Fall Through" to try ntlm_auth. I have tried to google this 
>>> extensively, but cannot find where I should configure FreeRADIUS to 
>>> first try PAP and the try ntlm_auth.
>>>
>>> Any help appreciated.
>>    Follow the instructions here: http://wiki.freeradius.org/list-help
>>
>>    Alan DeKok.
>
> -
> List info/subscribe/unsubscribe? See 
> http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list