Perl, MySQL & auth

Fabricio Flores fabrifloresg at gmail.com
Fri Apr 20 02:12:36 CEST 2012


ok i start the freeradius with freeradius -x and i have this error:

Can't load '/usr/lib/perl5/auto/DBI/DBI.so' for module DBI:
/usr/lib/perl5/auto/DBI/DBI.so: undefined symbol: PL_memory_wrap at
/usr/lib/perl/5.12/DynaLoader.pm line 192.

I read in another post that is an error because i use dbi of perl... so i
started freeradius with:

LD_PRELOAD=/usr/lib/libperl.so.5.12.4 freeradius -X

in this way freeradius daemon starts but in the freeradius log i have this:
Thu Apr 19 18:27:55 2012 : Info: Loaded virtual server inner-tunnel
Thu Apr 19 18:27:55 2012 : Error: rlm_perl: perl_parse failed:
/etc/freeradius/example.pl not found or has syntax errors.
Thu Apr 19 18:27:55 2012 : Error: /etc/freeradius/modules/perl[7]:
Instantiation failed for module "perl"
Thu Apr 19 18:27:55 2012 : Error:
/etc/freeradius/sites-enabled/default[265]: Failed to load module "perl".
Thu Apr 19 18:27:55 2012 : Error:
/etc/freeradius/sites-enabled/default[265]: Failed to parse "perl" entry.
Thu Apr 19 18:27:55 2012 : Error: Failed to load virtual server <default>

i test the perl script without freeradius variables and it works

El 19 de abril de 2012 10:56, alan buxey <A.L.M.Buxey at lboro.ac.uk> escribió:

> Hi,
>
> >    Hi... I worked in my perl script... i did the conection to the web
> service
> >    and it works... I configure freeradius (add perl and sql) in auth
> section,
> >    I made a debug with freeradius -X but I don�t know if freeradius read
> the
> >    perl script before work with mysql... i have this output:
>
> the logs show the perl being called before the sql...and the sql failing
> with
> usuario userid not being found
>
>
> alan
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>



-- 
Fabricio A. Flores G.
Egresado en Ingeniería en Sistemas

MSN: fabri_floresg at hotmail.com
Google: fabrifloresg at gmail.com
Twitter: fabricioflores
Skype: fabriciofloresgallardo

Blog Personal <http://fabricioflores.wordpress.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20120419/ef1c1158/attachment-0001.html>


More information about the Freeradius-Users mailing list