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

Hugh Irvine hugh at open.com.au
Mon Feb 16 17:47:11 CST 2004


Hi Terry -

Without seeing the hook code it is difficult to tell, but I suspect $p 
is not defined correctly.

The simplest way to debug hooks is to add "print ...." statements and 
run radiusd from the command line:

	perl radiusd -foreground -log_stdout -trace 4 -config_file ....

Then you can see exactly what is going on.

regards

Hugh


On 16 Feb 2004, at 18:44, Terry Simons wrote:

> I tried the following:
>
> my $username         = Radius::Util::format_special('%u', $p);
>
> But I got an error:
>
> Mon Feb 16 00:40:57 2004: ERR: Error in PostAuthHook(): Not a HASH 
> reference at /Library/Perl/5.8.1/Radius/Util.pm line 331.
>
> I looked at the format_special() function, which is a little over my 
> head, but this seemed correct.
>
> Did I do something wrong?
>
> Thanks,
>
> - Terry
>
>
> On Feb 15, 2004, at 11:22 PM, Hugh Irvine wrote:
>
>>
>> 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:
>>
>
> ===
> 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.
===
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