(RADIATOR) Variables in Hooks

Hugh Irvine hugh at open.com.au
Tue Sep 11 19:53:58 CDT 2001


Hello Griff -

You would do this:

	my $server =  &main::getVariable('DbHost');

There are examples in the file "goodies/hooks.txt".

regards

Hugh


On Wednesday 12 September 2001 06:38, Griff Hamlin, III wrote:
> Hello,
>
> Is it possible to use global variables that are defined in the
> radius.cfg file within a PreClientHook that resides in another file? I
> would like to have a global variable %{DbHost} that is the database
> server hostname. In my PreClientHook I need to contact that server for
> some information. Can I have the following:
>
> #!/usr/local/bin/perl
>
> sub {
>     my $server = %{GlobalVar:DbHost};
>     ...
>     contact database and retrieve stuff
>     ....
> }
>
> I've scoured the manual for this, but if you know where it is, please
> tell me.
>
> Griff Hamlin, III
>
> ===
> 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.

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