(RADIATOR) Variable Substitution

2003-07-22 Thread Timothy G. Wells



Hi All,
Is there a way to have a variable be defined or set within a certain
Realm or Handler so that the AuthBy some-auth-name could use that
variable in its processing?
realm xyz.com
variable=1
AuthBy someauthhandler
/realm
authBy SQL
query where the value of variable is desired...
/authby
Thanks,
-- Tim


Timothy G. Wells,
president
513-662-4443 x11
Good News Internet
Services
fax 513-662-8461
[EMAIL PROTECTED]
http://www.goodnews.net
This is the day the Lord has made; 
let us rejoice and be glad in it. (Ps 118:24, NIV) 



Re: (RADIATOR) Variable Substitution

2003-07-22 Thread Hugh Irvine

Hello Tim -

The simplest way to do this is to add one or more pseudo-attributes to the incoming request packet and then refer to it (them) in your processing. You can either use an AddToRequest , or you can use a hook. There is an example PreClientHook in the file goodies/hooks.txt that does exactly this for decoding an encoded Cisco attribute.

regards

Hugh


On Wednesday, Jul 23, 2003, at 13:12 Australia/Melbourne, Timothy G. Wells wrote:

Hi All,

Is there a way to have a variable be defined or set within a certain Realm or Handler so that the AuthBy some-auth-name could use thatĀ  variable in its processing?

realm xyz.com>

variable=1
AuthBy someauthhandler

/realm>

authBy SQL>

query where the value of variable is desired...

/authby>

Thanks,

-- Tim




Timothy G. Wells, presidentĀ  513-662-4443 x11
Good News Internet ServicesĀ  fax 513-662-8461
[EMAIL PROTECTED] http://www.goodnews.net

This is the day the Lord has made;
let us rejoice and be glad in it. (Ps 118:24, NIV)

NB: have you included a copy of your configuration file (no secrets), 
together with a trace 4 debug showing what is happening?

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