Re: Nocat and RADIUS?

Laurent Steff <[email protected]> Thu, 23 Feb 2006 18:50:50 +0100
Newsgroups gmane.network.nocat
Message-ID <[email protected]>
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.
> _______________________________________________
> NoCat mailing list
> [email protected]
> http://lists.nocat.net/mailman/listinfo/nocat

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.

Hope it could help !

Cheers,

-- 
Laurent STEFF

Moyens Informatiques
INRIA Futurs
Parc Club Orsay Universite
4, Rue Jacques Monod
91893 Orsay France

Tel: +33(0)172925914