Hi all,

I have a setup that forwards some accounting to several servers. I
need to mangle some attributes before a forward to the remote
server.One requirement is to have different mangling per host.
I couldn't found a way to change hook some code at AuthBy RADIUS, so I
implemented the attached patch.

So , my question is :

Is there a way to achieve what I want ?

Does the patch makes sense ?

Thanks in advanced,

José Borges Ferreira
diff -ruN /opt/radius/Radius/AuthRADIUS.pm Radiator-4.14/Radius/AuthRADIUS.pm
--- /opt/radius/Radius/AuthRADIUS.pm	2015-04-21 15:53:39.831182077 +0100
+++ Radiator-4.14/Radius/AuthRADIUS.pm	2014-12-03 08:40:27.000000000 +0000
@@ -92,9 +92,6 @@
  'IgnoreAccountingResponse'   => 
  ['flag', 'This optional flag causes AuthBy RADIUS to ignore replies to accounting requests, instead of forwarding them back to the originating host. This can be used in conjunction with the AccountingHandled flag in a Handler or Realm to ensure that every proxied accounting request is replied to immediately, and the eventual reply from the remote Radius server is dropped.', 1],
 
- 'RequestHook'                  => 
- ['hook', 'Perl function that will be called before the request is sent to the remote Radius server. ', 1],
-
  'ReplyHook'                  => 
  ['hook', 'Perl function that will be called after a reply is received from the remote Radius server and before it is relayed back to the original client. ', 1],
 
@@ -352,8 +349,6 @@
     
     # Choose a target host and send it:
     delete $p->{RadiusResult};
-    $self->runHook('RequestHook', $p, \$p, \$fp)
-	    if defined $self->{RequestHook};
     $self->forward($fp, $p);
 
     if ($self->{Synchronous})
_______________________________________________
radiator mailing list
radiator@open.com.au
http://www.open.com.au/mailman/listinfo/radiator

Reply via email to