(RADIATOR) PreHandlerHook?

Hugh Irvine hugh at open.com.au
Thu Aug 3 17:38:28 CDT 2006


Hello Ricardo, Hello Frank -

You have several choices for hooks within a Realm or Handler,  
depending on when you want to have things happen.

	the PreProcessingHook fires on entry to the Handler

	the PreAuthHook fires before the AuthBy clause(s) are run

	the PostAuthHook fires after the AuthBy clause(s) are run

	the PostProcessingHook fires just before the Handler exits

See section 18 in the Radiator 3.15 reference manual ("doc/ 
ref.html"), and see the code in "Radius/Handler.pm".

Note that the Realm clause is a sub-class of Handler, so behaves in  
exactly the same way.

And as Frank rightly points out, if you want special processing in  
the midst of a sequence of AuthBy's, you can use an AuthBy INTERNAL.

See section 5.48 in the manual.

There are numerous examples in the file "goodies/hooks.txt".

regards

Hugh


On 4 Aug 2006, at 02:54, Frank Danielson wrote:

> Try a PreAuthHook as described in Section 5.17.13 in the manual. The
> PreAuthHook is defined in a handler and is ran before any AuthBy  
> clauses are
> processed.
>
> <Handler Realm=10.0.0.1,Digest-Method=REGISTER>
> 	PreAuthHook file:"hook.pl"
> 	<AuthBy SOMETHING>
> 		.....
> 	</AuthBy>
> </Handler>
>
> If you want to run a hook between two AuthBy's within a Handler you  
> can use
> an AuthBy INTERNAL between the other two AuthBy's and one of the  
> internal
> hooks described in section 5.48 of the manual. This example will  
> run hook.pl
> for every request after AuthBy SOMETHING and before AuthBy  
> SOMETHINGELSE.
>
> <Handler Realm=10.0.0.1,Digest-Method=REGISTER>
> 	<AuthBy SOMETHING>
> 		.....
> 	</AuthBy>
> 	<AuthBy INTERNAL>
> 		RequestHook file:"hook.pl"
> 	</AuthBy>
> 	<AuthBy SOMETHINGELSE>
> 		.....
> 	</AuthBy>
> </Handler>
>
> Frank Danielson
> Infrastructure Architect
>
> ClearSky Mobile Media
> 56 E. Pine St.
> Orlando, FL 32801
> USA
>
> fdanielson at csky.com
>
> -----Original Message-----
> From: Ricardo Martinez [mailto:rmartinez at redvoiss.net]
> Sent: Thursday, August 03, 2006 12:20 PM
> To: radiator at open.com.au
> Subject: (RADIATOR) PreHandlerHook?
>
>
> Hello again.
>         Is there a way to execute a hook for a particular  
> handler?.  For
> example i have a hanlder like this.
> <Handler Realm=10.0.0.1,Digest-Method=REGISTER>
>  .....
> </Handler>
> If the answer is yes , How is the format ?
> Thanks!
> Ricardo Martinez.-
>
> --
> 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