Hello Lars,
On Feb 28, 4:33pm, Lars Marowsky-Bree wrote:
> Subject: (RADIATOR) Handler.pm.patch for 2.15 to make Pre/PostAuthHook wor
>
> Bug is obvious from the patch I think. I didn't check any of the other hooks
> though.
I think that PreAuthHook and the others are correct.
They are all expected to pass a _reference_ to the object handle. I think that
is consistent with the docs too.
Are you upgrading from an oldish version? The standard for calling hooks
changed some time back.
Cheers.
>
> Sincerely,
> Lars Marowsky-Br�e
>
> --
> Lars Marowsky-Br�e
> Network Management
>
> teuto.net Netzdienste GmbH
>
> [ text/plain ] :
>
> --- Handler.pm~ Tue Feb 15 08:09:41 2000
> +++ Handler.pm Mon Feb 28 16:23:22 2000
> @@ -495,7 +495,7 @@
> {
> # We use an eval so an error in the hook wont
> # kill us.
> - eval{ &{$self->{PreAuthHook}}(\$p, \$rp); };
> + eval{ &{$self->{PreAuthHook}}($p, $rp); };
> &main::log($main::LOG_ERR,
> "Error in PreAuthHook(): $@")
> if $@;
> @@ -545,7 +545,7 @@
> {
> # We use an eval so an error in the hook wont
> # kill us.
> - eval{ &{$self->{PostAuthHook}}(\$p, \$rp, \$handled); };
> + eval{ &{$self->{PostAuthHook}}($p, $rp, $handled); };
> &main::log($main::LOG_ERR, "Error in PostAuthHook(): $@")
> if $@;
> }
>-- End of excerpt from Lars Marowsky-Bree
--
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, TACACS+, PAM, external, etc etc on Unix, Win95/8,
NT, MacOS X
�
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.