rlm_perl problems

Garber, Neal Neal.Garber at energyeast.com
Fri Jul 24 16:10:13 CEST 2009


I've been debating sending a similar message to the list as well.  I am also experiencing the same problem with 2.1.6 (undefined subroutines that *clearly* exist in the script) and Seg Faults.  I have reinstalled perl and then reinstalled FreeRadius to see if I can work around the issue with no success.  

Even the example.pl that comes with FR 2.1.6 fails.  Currently, I have some of my scripts disabled to workaround the problem.

-----Original Message-----
From: freeradius-users-bounces+neal.garber=energyeast.com at lists.freeradius.org [mailto:freeradius-users-bounces+neal.garber=energyeast.com at lists.freeradius.org] On Behalf Of Igor Smitran
Sent: Friday, July 24, 2009 8:30 AM
To: freeradius-users at lists.freeradius.org
Subject: rlm_perl problems]

I am using Freeradius 2.1.6.

I have a working setup of freeradius with perl scripts inside authorize
and accounting sections.
Everything works great when i am using only one script.
But. if i add another script to do some other stuff for example in
post-auth section i get errors in log and freeradius dies.

Error i get is:
Error: rlm_perl: perl_embed:: module =
/etc/raddb/config_dialup/perl_script_2.pl , func = post_auth exit
status= Undefined subroutine &main::post_auth called.

My perl setup is like this:

perl perl_script_1 {
        module = ${confdir}/config_dialup/perl_script_1.pl
        func_authorize = authorize_check_username
        func_accounting = accounting_check_username
}

perl perl_script_2 {
        module = ${confdir}/config_dialup/perl_script_2.pl
}



If i put everything into one script, like this:


perl perl_script_1 {
        module = ${confdir}/config_dialup/perl_script_1.pl
        func_authorize = authorize_check_username
        func_accounting = accounting_check_username
}

perl perl_script_2 {
        module = ${confdir}/config_dialup/perl_script_1.pl
}

then everything is ok. Did any of you had these problems?

Thank you


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html




More information about the Freeradius-Users mailing list