On Wed, 2003-07-16 at 09:45, Boian Jordanov wrote:
> On _ 2003-07-01 at 20:20, Manuel Sousa wrote:
> > Hi all,
> >
> > I just tried the latest CVS (couple of hours ago) version and found a
> > bug when using 2 instances of the module.
>
> There is a patch against latest CVS that should fix it. Enjoy.
First of all thanks for your work,
I've applied the patch (against pre3 and it went in ok), but i still
have the same problem. Bellow i send some logs.
Another thing i've come upon is that i wanted to change the
request->simul_count from within the perl script (using a perl script in
the session phase) and wonder if it is possible. For now i did a crude
patch to modules.c where if i return USERLOCK it considers the case
where it there are already more users logged in than there should.
I'm willing to test others scripts/patches so if you want to you may
either send me a email or to the list and i'll try it.
Again thanks,
Manuel Sousa
=====LOG=====
(both have func_accounting = accounting)
Using perl at 0x81162a0
rlm_perl: rlm_perl:: PERL2
modcall[accounting]: module "perl1" returns ok
radius_xlat: 'night'
( perl1 => func_accounting = accounting ; perl2 => func_accounting =
accounting2 )
Using perl at 0x81162a0
rlm_perl: perl_embed:: module = /servicos/freeradius/sbin/perl1.pl ,
func = accounting exit status= Global symbol "$stdin" requires explicit
package name. Global symbol "$stdout" requires explicit package name.
Global symbol "$stderr" requires explicit package name. Undefined
subroutine &main::accounting called.
modcall[accounting]: module "perl1" returns reject
modcall: group group returns reject
Using perl at 0x8120288
rlm_perl: rlm_perl:: PERL2
modcall[accounting]: module "perl2" returns ok
=====END LOG=====
=====SCRIPT=====
perl1
sub accounting{
&radiusd::radlog(1,"rlm_perl:: PERL1");
return RLM_MODULE_OK;
}
perl2
sub accounting{ # Later sub accounting2
&radiusd::radlog(1,"rlm_perl:: PERL2");
return RLM_MODULE_OK;
}
=====END SCRIPT=====
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html