rlm_perl/radius issues with db connections

Alan DeKok aland at deployingradius.com
Thu Jun 11 10:00:13 CEST 2009


Meyers, Dan wrote:
> I'm having a few issues with FreeRadius 2.1.4 (2.1.6 isn't in ports yet)
> and MySQL 5.1 on FreeBSD 6.2.
> 
> Specifically, I am using the CLONE method in my perl script to create my
> database handles every time a new thread is spawned. If I start radius
> and then do 'show processlist' on the MySQL server I see no connections
> from the radius server. If I then send a single update from radclient I
> get a connection in show processlist, and a timely response to my
> request.

  You might try the rlm_perl module from 2.1.3.  The one in 2.1.4 had
some changes which might affect this.

> I'm *think* this delay is
> in instantiating perl for each radius thread, as the error messages
> still get spammed into the log for 10-20 seconds even if my authenticate
> and accounting perl functions simply contain 'return RLM_MODULE_OK;'.

  It can't really be much else.  But I'm a little surprised it takes
that long.  Perl isn't normally that slow.

  Alan DeKok.



More information about the Freeradius-Users mailing list