(RADIATOR) Parameter from AuthSelect sent to PostAuthHook

Hugh Irvine hugh at open.com.au
Wed Feb 27 01:28:28 CST 2008


Hello Carlos -

You simply need to add the value to a pseudo-attribute in the  
request, where you can access it later.

.....

	AuthSelect SELECT HIGH_PRIORITY password, check_attr, type from  
dialup where...

	AuthColumnDef 0, Password, check

	AuthColumnDef 1, GENERIC, check

	AuthColumnDef 2, User-Type, request

.....

The hook would then do something like this (see "goodies/hooks.txt"):


	my $type = $p->get_attr('User-Type');


hope that helps

regards

Hugh


On 27 Feb 2008, at 03:05, onrubia carlos wrote:

> Hello,
>
> In the authentication configuration file, we are using a AuthSelect  
> in the handler part:
>
> AuthSelect SELECT HIGH_PRIORITY password, check_attr from TABLE  
> where...
>
> In this TABLE, there is a field ("type") whose value must be used  
> in the PostAuthHook.
>
> Can we pass this value to the Hook in order to avoid a second  
> accesss to the TABLE  in this hook?
>
> For example , use the following select in the handler to retrieve  
> the "type" value.
>
> AuthSelect SELECT HIGH_PRIORITY password, check_attr, type from  
> dialup where...
>
> And then pass the type value to the Hook.
>
>
> Thanks in advance for the answer,
>
>
> Carlos
>
>
>



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?
Have you checked the RadiusExpert wiki:
http://www.open.com.au/wiki/index.php/Main_Page

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