Jan,
There were some errors in the doc's on this issue. They have been
corrected in the newer versions.
>From an earlier mail to the list:
You access the parameters like this:
# get the parameters passed to this hook
my $p = ${$_[0]}; # current request packet
my $rp = ${$_[1]}; # current reply packet
my $code = ${$_[2]}; # authentication result
So that would be
my $p = ${$_[0]};
PreAuthHook sub { $p -> add_attr('cttIsSubscriber', '1'); }
(untested)
- Joost.
>
> Dear sir,
>
> We installed /use Radiator-2.12.
> The package has been installed on a SUN 2.6 system using
> almost all default settings, and works fine with one exeption.
>
> In the documentation (Installation and Reference manual For
> Radiator version 2.12) we found a description (par 5.8.9) for
> the parameter PreAuthHook.
>
> We added the following line to the configuration file:
> ===============================================================
> # Null realm, handles users with no realm
> <Realm>
> PreAuthHook sub { $_[0] -> add_attr('cttIsSubscriber', '1'); }
> <AuthBy LDAP>
> # The LDAP host to connect to
> # If not set, defaults to localhost
> ===============================================================
>
> Whenever we 'use' the concerning Null realm
> the radius logfile 'reports' the following information:
> ===============================================================
> Thu Apr 13 08:26:28 2000: DEBUG: Handling request with Handler 'Realm='
> Thu Apr 13 08:26:28 2000: ERR: Error in PreAuthHook(): Undefined subroutine
> &Rad
> ius::Handler::CODE called at (eval 33) line 1.
> ===============================================================
>
> I found the declarations for this routine in the file .../Handler.pm
> Does the error-message mean the application cannot find or execute
> this Handler.pm file or is it some other configuration mismatch.
>
> Thanks in advance and best regards,
> Jan van Nieuwstadt
> Infonet Europe
> PO Box 93004, 2509AA The Hague, The Netherlands
> Koningin Sophiestraat 120, 2595 TM The Hague, The Netherlands
> Tel : +31 (0) 70 37 11302
> Fax: +31 (0) 70 37 11888
> Email: [EMAIL PROTECTED]
>
> ---End of forwarded mail from [EMAIL PROTECTED]
>
> --
> 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,
> 2000, NT, MacOS X
> ===
> Archive at http://www.starport.net/~radiator/
> Announcements on [EMAIL PROTECTED]
> To unsubscribe, email '[EMAIL PROTECTED]' with
> 'unsubscribe radiator' in the body of the message.
===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.