(RADIATOR) Variable Settings in Radiator

Hugh Irvine hugh at open.com.au
Tue Sep 18 17:34:30 CDT 2001


Hello Griff -

On Wednesday 19 September 2001 04:42, Griff Hamlin, III wrote:
> Hugh,
>
> I'm wondering if it is possible to set things in a Client block based on
> the results of a PreHandlerHook? For example,
>
> sub { my $nas = ${$_[0]} -> get_attr('NAS-IP-Address'); \
>     if ($nas = 'some ip address') { \
>         Set the NasType field to Livingston or Cisco and the
> SNMPCommunity \
>     }
> }
>

Anything is possible, but why would you want to do this?

My usual suggestion is to use the "Identifier" field in the Client clauses to 
add special tags to them. 

As a general rule, doing anything with IP addresses is to be discouraged as 
it makes future changes very difficult.

regards

Hugh


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