(RADIATOR) How to pass arguments to hook?

Hugh Irvine hugh at open.com.au
Fri Aug 4 06:34:07 CDT 2006


Hello Jan -

You can use the "Identifier" and/or "Description" fields in your  
Handlers for whatever you wish.


<Handler Realm=/^orgA\.etest\.cesnet\.cz$/>
	Identifier 	dr_server_list r1,r2
	Description .......
.
.
.
.
</Handler>

<Handler Realm=/^orgC\.etest\.cesnet\.cz$/>
	Identifier 	dr_server_list r1
	Description .......
.
.
.
.
</Handler>


See the examples in "goodies/hooks.txt".

regards

Hugh


On 4 Aug 2006, at 18:35, Jan Tomasek wrote:

> Hello Frank,
>
>> You may want to look at DefineFormattedGlobalVar. This allows you  
>> to defince
>> varaibles in the confgi file which can be accessed inside a hook  
>> using
>> &main::getVariable(). There is an example of this in the goodies/ 
>> hooks.txt
>> file.
>
> that is global variable, you canot put DefineFormattedGlobalVar  
> into <Handler> </Handler>
>
> I need customize arguments for that NoReplyHook in multiple  
> diferent handlers. For example:
>
> <Handler Realm=/^orgA\.etest\.cesnet\.cz$/>
> 	DefineFormattedGlobalVar	dr_server_list r1,r2
> .
> .
> .
> .
> </Handler>
>
> <Handler Realm=/^orgC\.etest\.cesnet\.cz$/>
> 	DefineFormattedGlobalVar	dr_server_list r1
> .
> .
> .
> .
> </Handler>
>
> That does not work. Radiator says:
>
> Fri Aug  4 10:34:32 2006: ERR: Unknown keyword  
> 'DefineFormattedGlobalVar' in /etc/radiator/radius.cfg line 58
>
> Thanks for idea, but this is not my way :) Any other sugestions?
>
> -- 
> -----------------------
> Jan Tomasek aka Semik
> http://www.tomasek.cz/
>
> --
> 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.



NB:

Have you read the reference manual ("doc/ref.html")?
Have you searched the mailing list archive (www.open.com.au/archives/ 
radiator)?
Have you had a quick look on Google (www.google.com)?
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, MacOS X.
Includes support for reliable RADIUS transport (RadSec),
and DIAMETER translation agent.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
-
CATool: Private Certificate Authority for Unix and Unix-like systems.


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