rlm_perl issue

Phil Mayers p.mayers at imperial.ac.uk
Thu Aug 22 18:22:33 CEST 2013

On 22/08/13 16:46, Dean, Barry wrote:

> Anyone want to throw in 2 cents/pennies worth to this?

Yep, don't do it like this.

Instead, write the user/ip entries to a file using the "linelog" module, 
and use a long-running perl process to tail the file (using File::Tail) 
and post them to the PAN. This will likely be more performant and avoid 
the hassles of a random module interfering with FreeRADIUS.

You probably want to write a timestamp to the file, and have the 
long-running process ignore lines >X old, in case it lags behind e.g. 
because it hangs, gets shutdown and restarted much later, etc.

More information about the Freeradius-Users mailing list