Re: Nocat and RADIUS?

"Steve Fletty" <[email protected]> Mon, 27 Feb 2006 15:49:25 -0600
Newsgroups gmane.network.nocat
Organization University of Minnesota
Message-ID <022801c63be7$ad6a0b10$03055486@NTSFLETTY>
----- 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?