(RADIATOR) Question about differences with getUserName() in PostAuthHook and PreProcessingHook

Hugh Irvine hugh at open.com.au
Mon Feb 16 00:22:23 CST 2004


Hello Terry -

You can use any of the "special characters" by calling format_special().

Have a look at the example hooks in "goodies/hooks.txt".

regards

Hugh


On 15 Feb 2004, at 20:24, Terry Simons wrote:

> Hi,
>
> I'm using getUserName in my hook (which handles both PostAuth and 
> PreProcessIng) and I noticed that the username I get back from the 
> PostAuth is the stripped name (even though my Access-Request shows the 
> unstripped name), while the name I get back from the PreProcessing is 
> the unstripped name (I assume this is because the accounting record 
> reflects exactly what is sent by the NAS).
>
> My question is... can I get the unstripped username during the 
> PostAuthHook call?
>
> I tried using:
>
> ${$p}->get_attr('User-Name')
>
> But I still get the stripped name.
>
> It would be nice if I could do something like:
>
> ${$p}->get_attr('%u') and have Radiator figure it out for me.   :-)
>
> Is there any way to reference %u in my script?
>
> Thanks!
>
> - Terry
>
> ===
> 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 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.
-
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