best place for logic - users file or custom module?

Tariq Rashid tariq.rashid at
Tue Aug 23 17:58:59 CEST 2005

is python more stable than the support for perl? i have much more experience
in python than perl.

also is the "perl/python" stuff persistent - or is the interpreter invoked
for every request? i am asking as i think this is the main reason for
Radiator's performance issues - in theory even a big interpreter loaded into
RAM should run fine ... but I suspect something inefficent is happening with

tariq rashid

-----Original Message-----
From: freeradius-users-bounces at
[mailto:freeradius-users-bounces at]On Behalf Of Alan
Sent: 23 August 2005 16:54
To: FreeRadius users mailing list
Subject: Re: best place for logic - users file or custom module? 

Tariq Rashid <tariq.rashid at> wrote:
> hi, i'm planning a significant migration from a different radius server
> (Radiator, perl based). 

  That's good to hear!

> our tests with freeradius show a much lighter server - its faster, and
> easier on memory and cpu. however the downside is that applying custom
> to the radius process is a bit more difficult. 

  Yes, there are trade-offs.

> i'd like some advide on the best place to implement this logic. for
> - a common scenario is for a request to come from A, and the reply to A
> contains instructions to extend a tunnel to a second device B. A second
> query from B is then received. 
> this case is handled easily in perl using "if()" constructs.

  My suggestion is to use Perl.  :)

  rlm_perl is in 1.0.4, but it's not stable.  The CVS head is in
transition, too.

  I would suggest grabbing revision 1.19 of rlm_perl from CVS, and
building it into 1.0.4.  It should work, and it will get you the
custom logic you need.  And, it will be multi-threaded, too.

  Alan DeKok.
List info/subscribe/unsubscribe? See

More information about the Freeradius-Users mailing list