Hi Marc,

On Apr 19,  9:44pm, Marc Liyanage wrote:
> Subject: (RADIATOR) PostAuthHook Problem
>
>
> Hi,
>
> I'm having trouble with the PostAuthHook Realm/Handler parameter.
>
>
> My Hook basically looks like this (stripped down to the essentials):
>
> PostAuthHook sub {                                                \
>                                                                   \
>         my ($request, $reply, $auth_result) = @_;                 \
>                                                                   \
>         &Radius::Log::log($main::LOG_NOTICE, "$request - $reply -
$auth_result");\
>                                                                   \
>         $reply->add_attr('Service-Type', 'Framed-User');          \
>                                                                   \
> }
>
>
> The documentation says that the first and second arguments to the subroutine
> are references to the request and reply and the third argument is the
> result of the Auth phase.
>
>
> Therefore the add_attr() call should work, but it causes the following error:
>
> Mon Apr 19 21:25:08 1999: ERR: Error in PostAuthHook(): Can't call method
"add_attr" on unblessed reference at (eval 49) line 1.

You will have to reference it like this:

 $$reply->add_attr(.....

Hope that helps.

Cheers.


-- 
Mike McCauley                               [EMAIL PROTECTED]
Open System Consultants Pty. Ltd            Unix, Perl, Motif, C++, WWW
24 Bateman St Hampton, VIC 3188 Australia   http://www.open.com.au
Phone +61 3 9598-0985                       Fax   +61 3 9598-0955

Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, external, etc etc on Unix, Win95/8, NT, Rhapsody
===
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to