(RADIATOR) Variables in Hooks

Griff Hamlin, III griff3 at quik.com
Tue Sep 11 15:38:13 CDT 2001


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.


More information about the radiator mailing list