Hello Jan -

> 
> Dear sir,
> 
> We installed /use Radiator-2.12.
> Our username/pw is "att-unisource" , "lasute-50".
> 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.
> 

You have stumbled on a typo in the manual that has been fixed long since. The
correct syntax for the parameter passing (by reference) is this:

        PreAuthHook sub { ${$_[0]} -> add_attr('cttIsSubscriber', '1'); }

BTW - the latest version of Radiator is 2.15, which includes some significant
improvements to the LDAP code. I suggest you download the new version and check
out the new features.

hth

Hugh

-- 
Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/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.

Reply via email to