Re: External Authentication program problem

2011-11-28 Thread Ali Majdzadeh
FYI: This is not a perl script. It’s a compiled C program. Just its extension is .pl! For more information: This is my module config: exec netbill_pre_auth{ wait = yes program = /etc/netbill/preauth.pl input_pairs = request

Re: External Authentication program problem

2011-11-28 Thread Fajar A. Nugraha
On Mon, Nov 28, 2011 at 6:51 PM, Ali Majdzadeh ali.majdza...@gmail.com wrote: Also plz note that auth.pl forks another exec program per authenticated user (named calc) and will live till user stopped. So if I’ve 20.000 online users, I’ve also 20.000 calc process. The most obvious question is

Re: External Authentication program problem

2011-11-28 Thread Alan DeKok
Ali Majdzadeh wrote: So I need to use with exec-wait becos the external programs need to wait util authentication/authorization/accounting done! That is how exec-wait works. Also plz note that auth.pl forks another exec program per authenticated user (named calc) and will live till user

Re: External Authentication program problem

2011-11-27 Thread Alan DeKok
Ali Majdzadeh wrote: A while after radius up, it reports: Sat Nov 26 13:02:03 2011 : Error: Couldn't fork /etc/netbill/acct.pl : Cannot allocate memory Hmmm... you're probably using exec wait', right? And starting many, many, external programs. That's probably the issue. There may be a

External Authentication program problem

2011-11-26 Thread Ali Majdzadeh
Hi I’m using freeradius 2.1.12 with external program calling for auth, pre-auth and acct A while after radius up, it reports: Sat Nov 26 13:02:03 2011 : Error: Couldn't fork /etc/netbill/acct.pl: Cannot allocate memory The machine is: 12 G ram, CentOS 5.4, Kernel 2.6.18-164.el5PAE