best place for logic - users file or custom module?

Alan DeKok aland at ox.org
Tue Aug 23 17:53:52 CEST 2005


Tariq Rashid <tariq.rashid at uk.easynet.net> 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 logic
> 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 example
> - 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.



More information about the Freeradius-Users mailing list