(RADIATOR) Merging two hooks into one

Felicetti, Stephen A. SA_Felicetti at fccc.edu
Tue Mar 20 08:22:56 CST 2007


That worked perfectly!  Thanks a lot. 

-----Original Message-----
From: Hugh Irvine [mailto:hugh at open.com.au] 
Sent: Monday, March 19, 2007 5:38 PM
To: Felicetti, Stephen A.
Cc: radiator at open.com.au
Subject: Re: (RADIATOR) Merging two hooks into one


Hello Stephen -

What you describe below actually involves three separate hooks.

You would use a PreClientHook for the cisco-avpairs, and you would use the
eap_anon_hook.pl as both a PostAuthHook and a PreProcessingHook in the inner
and outer Handlers.

Something like this:

......

PreClientHook file:"%D/creteavpairs.pl"

......

<Handler TunnelledByTTLS = 1>
	# inner request
	......
	PostAuthHook file:"%D/eap_anon_hook.pl"
</Handler>

<Handler>
	# outer requests
	PreProcessingHook file:"%D/eap_anon_hook.pl"
	.....
</Handler>
	
hope that helps

regards

Hugh


On 20 Mar 2007, at 01:12, Felicetti, Stephen A. wrote:

> Hello,
>
> I found in the archives and documentation two things I need:
>
> 1.    Replacing the outter auth name with the inner during an EAP- 
> TTLS authentication. (wap_anon-hook.pl)
> 2.    Splitting the cisco-avpair attribute into multiple values and  
> adding them to the accounting request. (createavpairs.pl)
>
> I read that I can't have multiple hook files, and I don't know how to 
> get these two things to work in unison. I'm not an expert at perl, and 
> only know enough to cut and paste untill something
> works:)  I have a SQL database that is receiving accounting data OK 
> using the SessionsDatabase SQL option.
>
> Has anyone done this, or offer any advice?
>
> Many thanks,
>
> Stephen A. Felicetti
> Fox Chase Cancer Center
> Philadelphia, PA



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