Hello Craig -
If your Client definitions are in a ClientListSQL clause, you cannot use a file reference for the hook code (the database field itself must contain the hook code). This is less than useful I know.
To address this issue, one of our Radiator users contributed this (from the goodies directory):
sqlclienthook.pl
Description: Binary data
Alternatively, you could use a PreClientHook in the normal way.
regards
Hugh
On Saturday, Jun 21, 2003, at 02:25 Australia/Melbourne, Craig Gittens wrote:
Fri Jun 20 12:03:33 2003: ERR: Error in PreHandlerHook(): Can't use string
("%L\vpr") as a subroutine ref while "strict refs" in use at
C:/Perl/site/lib/Radius/Configurable.pm line 460.
I now have in the MSSQL field: "%L\\vpr" If I put in just "%L\vpr" I get:
Fri Jun 20 12:00:03 2003: ERR: Error in PreHandlerHook(): Can't use string
("%Lvpr") as a subroutine ref while "strict refs" in use at
C:/Perl/site/lib/Radius/Configurable.pm line 460.
This is the code in the auth.cfg for the clients:
<ClientListSQL> DBSource dbi:ODBC:Auth DBUsername xxx DBAuth xxx </ClientListSQL>
Help? Could it be because it's not the latest version of perl?
Thanks,
Craig.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Hugh Irvine Sent: Friday, June 20, 2003 1:08 AM To: Craig Gittens Cc: Radiator Subject: Re: (RADIATOR) What does this mean?
Hello Craig -
I suspect what you show below is in a file called "vpr"?
If so, the correct configuration file syntax is this:
PreHandlerHook file:"%D/vpr"
assuming that you have copied the "vpr" file to your DbDir directory (%D).
This instructs Radiator to load the hook code from the file "vpr" in the DbDir directory.
regards
Hugh
On Friday, Jun 20, 2003, at 14:50 Australia/Melbourne, Craig Gittens wrote:
Jun 19 17:48:50 2003: ERR: Error in PreHandlerHook(): Can't use string
("vpr") as a subroutine ref while "strict refs" in use at
C:/Perl/site/lib/Radius/Configurable.pm line 460.
This is the vpr file: (Thanks to Robert Blayzor!)
sub { ${$_[0]}->delete_attr('NAS-Port-Type'); ${$_[0]}->add_attr('NAS-Port-Type', 'Virtual'); }
and I am using a database with the field Prehandlerhook set to "vpr"
ThanksIA,
Craig Gittens Internet Infrastructure & Support Manager Sunbeach Communications Inc. "San Remo" Belmont Road, St. Michael, Barbados Voice: (246) 430-1569 Fax: (246) 228-6330
=== Archive at http://www.open.com.au/archives/radiator/ Announcements on [EMAIL PROTECTED] To unsubscribe, email '[EMAIL PROTECTED]' 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 95/98/2000, NT, MacOS X. - Nets: internetwork inventory and management - graphical, extensible, flexible with hardware, software, platform and database independence.
=== Archive at http://www.open.com.au/archives/radiator/ Announcements on [EMAIL PROTECTED] To unsubscribe, email '[EMAIL PROTECTED]' 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 95/98/2000, NT, MacOS X. - Nets: internetwork inventory and management - graphical, extensible, flexible with hardware, software, platform and database independence.
