(RADIATOR) How to send specifier values to hooks??

Hugh Irvine hugh at open.com.au
Tue Feb 1 18:57:25 CST 2005


Hello Michael -

The hook has access to the incoming request and you can access any 
attributes in the request.

The client IP address can be accessed with

	my $clientip = $p->get_attr('NAS-IP-Address');

See the example hooks in "goodies/hooks.txt".

regards

Hugh


On 1 Feb 2005, at 22:57, Michael Harsh wrote:

> Hello all,
>
> How do you send the value of a specifier/special character to a hook? 
> For
> instance, I want to send the Radius client IP address, using %c, to a 
> hook
> to insert it into the Radius packet.
>
> Thanks,
> Mike Harsh
>
> --
> 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.
>
>

NB:

Have you read the reference manual ("doc/ref.html")?
Have you searched the mailing list archive 
(www.open.com.au/archives/radiator)?
Have you had a quick look on Google (www.google.com)?
Have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?

-- 
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
-
CATool: Private Certificate Authority for Unix and Unix-like systems.

--
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