(RADIATOR) Proxy hook or something
Frank Danielson
fdanielson at csky.com
Mon Jun 19 19:08:33 CDT 2006
Hi Toomas-
If I understand you correctly you have a handler with some number of
AuthBy's and an AuthBy RADIUS at the end. You want to do some packet
processing after the second to last AuthBy and before the AuthBy RADIUS.
So how about taking the AuthBy RADIUS out of the handler and calling it from
a PostAuth Hook?
Something like this should work to get you started. I've borrowed liberally
from the examples provided in the goodies and not tested it myself.
<AuthBy RADIUS>
Identifier proxytoremote
Host .....
Secret .....
</AuthBy>
<Handler>
<AuthBy Something>
</AuthBy>
<AuthBy Something Else>
</AuthBy>
PostAuthHook file:"%D/preproxy"
</Handler>
preproxy-
sub {
my $p = ${$_[0]};
my $rp = ${$_[1]};
my $rc = ${$_[2]};
my $reason = ${$_[3]};
my $authby;
my $identifier='proxytoremote';
#some custom packet processing here
if ($authby = Radius::AuthGeneric::find($identifier))
{
&main::log($main::LOG_DEBUG, "Found AuthBy with Identifier
$identifier");
($rc, $reason) = $authby->handle_request($p, $rp);
$rp->set_code($rc);
}
else
{
&main::log($main::LOG_ERR, "No AuthBy with Identifier $identifier");
$rp->set_code('Access-Reject');
}
return;
}
Frank Danielson
Infrastructure Architect
ClearSky Mobile Media
56 E. Pine St.
Orlando, FL 32801
USA
fdanielson at csky.com
-----Original Message-----
From: Toomas Kärner [mailto:tomkar at estpak.ee]
Sent: Monday, June 19, 2006 9:25 AM
To: radiator at open.com.au
Subject: (RADIATOR) Proxy hook or something
Forgot to change the subject.
Sorry.
Monday, June 19, 2006, 3:08:53 PM, you wrote:
> Hello All/Hugh,
> In order to get some funky remote provider class attribute caching to
> work I need to run a hook after everything is done with AuthBy's and
> just before sending the Accounting request to remote partner.
> ReplyHook and NoReplyHook are no good since they are triggered by
> incoming packet or by timeout. I would need something like
> PostAuthHook in the outbound direction of Acct proxy.
> Any ideas?
> One is just to put another proxy in between that does all needed in
> the "pre" phase of processing....
> Rgds.
> Toomas
> --
> Archive at http://www.open.com.au/archives/radiator/
> Announcements on radiator-announce at open.com.au
> To unsubscribe, email 'majordomo at open.com.au' with
> 'unsubscribe radiator' in the body of the message.
--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.
--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.
More information about the radiator
mailing list