RE: (RADIATOR) Handler for a set of realms

2000-09-07 Thread Hugh Irvine


Hello Andrew -

On Thu, 07 Sep 2000, Andrew Pollock wrote:
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
  Behalf Of Hugh Irvine
  Sent: Tuesday, September 05, 2000 2:14 PM
  To: Andrew Pollock; [EMAIL PROTECTED]
  Subject: Re: (RADIATOR) Handler for a "set of realms"
 
 
 
  Hello Andrew -
 
  On Tue, 05 Sep 2000, Andrew Pollock wrote:
   Hi,
  
   Is it currently possible with Radiator to readily have a
  handler that checks
   for the realm being in a set of realms? The reason I ask is we
  have a system
   here that can theoretically add additional realms that require
  to be handled
   at any point in time, and it would be ideal if Radiator could
  read this from
   an external file.
  
 
  I think you will have to use a PreHandlerHook to check your file,
  and perhaps
  set a pseudo-attribute in the request packet that will be used to
  select the
  Handler. There are some examples of hooks in the file
  "goodies/hooks.txt" in
  the Radiator 2.16.3 release (also included in all recent releases).
 
  hth
 
 Cool, thanks Hugh. Do you know how I might go about cacheing this file
 instead of opening it and reading it evertime the hook executes?
 

It depends on how complex the data is, but the simplest approach is to use the
GlobalVar constructs. The first two examples in "goodies/hooks.txt" show how to
do it. The first hook is a StartupHook which reads the file and initialises the
GlobalVar's, while the second hook uses the GlobalVar data to manipulate the
packet contents.

hth

Hugh


-- 
Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.



===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



Re: (RADIATOR) Handler for a set of realms

2000-09-04 Thread Hugh Irvine


Hello Andrew -

On Tue, 05 Sep 2000, Andrew Pollock wrote:
 Hi,
 
 Is it currently possible with Radiator to readily have a handler that checks
 for the realm being in a set of realms? The reason I ask is we have a system
 here that can theoretically add additional realms that require to be handled
 at any point in time, and it would be ideal if Radiator could read this from
 an external file.
 

I think you will have to use a PreHandlerHook to check your file, and perhaps
set a pseudo-attribute in the request packet that will be used to select the
Handler. There are some examples of hooks in the file "goodies/hooks.txt" in
the Radiator 2.16.3 release (also included in all recent releases).

hth

Hugh

-- 
Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.



===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.