(RADIATOR) PreHandlerHook/ClientListSQL

Hugh Irvine hugh at open.com.au
Thu Apr 1 15:31:21 CST 2004


Hello Geoffrey -

You cannot use a PreClientHook directly with <ClientListSQL>.

However you can do something like this:

	goodies/sqlclienthook.pl

regards

Hugh


On 1 Apr 2004, at 23:41, DUFOUR Geoffrey wrote:

> Hello,
>
> I can't make my hook (PreHandlerHook) work with <CLientListSQL>.
>
> I think it is related to the way MySQL handles special characters like
> quotes, double quotes, ...
>
> I tried to escape the double quotes, to use the quote() function, ...
>
> I guess I'm missing something.
>
> Here is my parameter :
>
> Select PREHANDLERHOOK from RADCLIENT; (MySQL)
>
> file:"%D/nas_port"
>
> Here is the error I get for every RADIUS request :
>
> Thu Apr  1 15:56:46 2004: ERR: Error in PreHandlerHook(): Can't use
> string ("%D/nas_port") as a subroutine ref while "strict refs" in use 
> at
> /usr/local/ActivePerl-5.6/lib/site_perl/Radius/Configurable.pm line 
> 460.
>
> Any ideas ?
>
> Regards.
>
> Geoffrey
>
> --
> Archive at http://www.open.com.au/archives/radiator/
> Announcements on radiator-announce at open.com.au
> To unsubscribe, email 'majordomo at open.com.au' 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, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
-
CATool: Private Certificate Authority for Unix and Unix-like systems.

--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list