Re: Nocat and RADIUS?

Laurent Steff <[email protected]> Mon, 06 Mar 2006 17:08:51 +0400
Newsgroups gmane.network.nocat
Message-ID <[email protected]>
Hi Steve,

Steve Fletty wrote:
> ----- Original Message ----- 
> From: "Laurent Steff" <[email protected]>
> Subject: Re: [NoCat] Nocat and RADIUS?
>
>
>   
>> Hi,
>>
>> Steve Fletty wrote:
>>     
>>> Does Nocat need to be patached to get RADIUS to work?
>>>
>>> I have NoCat working with the passwd file, but I'm getting gibberish on 
>>> my RADIUS server from the NoCat auth server.
>>>       
>> I had to make this patch :
>>
>> ---------------------------------------------------------------------------------------------------------------------
>> --- lib/NoCat/Source/RADIUS.pm.orig     2005-11-09 16:32:59.000000000 
>> +0400
>> +++ lib/NoCat/Source/RADIUS.pm  2005-11-09 16:16:49.000000000 +0400
>> @@ -85,9 +85,10 @@
>>          # mimic the check_pwd from Authen::Radius
>>          $radius->clear_attributes;
>>          $radius->add_attributes (
>> -                                { Name => 1, Value => $user->id },
>> -                                { Name => 2, Value => $user_pw }
>> -       );
>> +                               { Name => 1, Value => $user->id, Type =>
>> 'string' },
>> +                               { Name => 2, Value => $user_pw, Type =>
>> 'string' }
>> +        );
>> +
>>
>>          my $radiuscheckok = 0;
>>          if($radius->send_packet (Authen::Radius::ACCESS_REQUEST())) {
>> ---------------------------------------------------------------------------------------------------------------------
>>
>> The symptoms where bad attributes sent to the radius server.
>>     
>
> Which version of NoCat did you apply this patch to? 
>
>   
Latest I've found : 0.82.

Regards,

-- 

Laurent STEFF