(RADIATOR) Writing a postAuthHook

Hugh Irvine hugh at open.com.au
Wed Aug 15 19:27:27 CDT 2001


Hello Kyle -

On Thursday 16 August 2001 06:51, Kyle wrote:
> Hugh,
>   I am writing a postAuth Hook program in perl to be able to hand
> sending specific reply attributes based on the NAS type. Our mySql
> database has a RADCLIENTLIST table radiator pulls the authentication for
> the NAS's from, and in that, it has a NASTYPE column. Would the
> information in that NASTYPE column be in a variable that I could gain
> access to from my postAuth hook program? Maybe as some type of hash
> variable that could I could get just that NASTYPE column based on the IP
> of the NAS when it is passed in on an Access-Request?
>

You would use something like this:

	my $nastype = $p->{Client}->{NasType}

> Actualy, the documentation on writing programs to be compatable via the
> hooks in radiator is on the skimpy side. I've looked at the
> /goodies/hooks.txt file and the section in the user manual on postAuth
> hooks. Are there any other resources where I can look that describes
> what functions are already avaible to the hooks, and what variables are
> avaible as well?

We feel that the best way for you learn what is in the source code is to read 
it - a refreshing attitude from a vendor isn't it!?

cheers

Hugh (may the source be with you ....)


-- 
Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
===
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