Freeradius and Winbindd Issue

Kinglok Fong busywater at gmail.com
Tue Aug 29 10:20:27 CEST 2017


> On 29 Aug 2017, at 4:12 PM, Matthew Newton <mcn at freeradius.org> wrote:
> 
> On 29 August 2017 08:55:33 BST, Kinglok Fong <busywater at gmail.com> wrote:
>> First of all, this configuration file:
>> /usr/local/freeradius/etc/raddb/mods-enabled/mschap
>> ===============
>> winbind_username = “%{schap:User-Name}”
> 
> That should be %{mschap:User-Name}
> 
> 

Yes, my fault, just a typo.  The configuration is correct.


>> /usr/local/freeradius/bin/radtest -t mschap a_user thepassword

> ...
> 
> What does the full debug output from freeradius -X show?
> 
> 

Ready to process requests
(0) Received Access-Request Id 205 from 127.0.0.1:35445 to 127.0.0.1:1812 length 129
(0)   User-Name = "a_user"
(0)   NAS-IP-Address = 192.168.107.7
(0)   NAS-Port = 0
(0)   Message-Authenticator = 0x06c949e75159bba6afd8641ad66b14ee
(0)   MS-CHAP-Challenge = 0xb65d59f6b9e382eb
(0)   MS-CHAP-Response = 0x0001000000000000000000000000000000000000000000000000d3a53982f03084196c9b3de251ce1cfe35db04af1ebc447f
(0) # Executing section authorize from file /usr/local/freeradius/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: Found MS-CHAP attributes.  Setting 'Auth-Type  = mschap'
(0)     [mschap] = ok
(0)     [digest] = noop
(0) suffix: Checking for suffix after "@"
(0) suffix: No '@' in User-Name = "a_user", 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)     [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) Found Auth-Type = mschap
(0) # Executing group from file /usr/local/freeradius/etc/raddb/sites-enabled/default
(0)   authenticate {
(0) mschap: Client is using MS-CHAPv1 with NT-Password
(0) mschap: EXPAND %{mschap:User-Name}
(0) mschap:    --> a_user
rlm_mschap (mschap): Reserved connection (0)
(0) mschap: sending authentication request user='a_user' domain='SAMBADOM'
Segmentation fault


> -- 
> Matthew
> 
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html




More information about the Freeradius-Users mailing list