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

Terry Simons galimore at mac.com
Sun Feb 15 03:24:48 CST 2004


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.


More information about the radiator mailing list