Hi all, I went through some problems for triggering the execution of some scripts upon the reception of accounting messages. Clearly, my acct_users file was as below: DEFAULT Acct-Status-Type == Start Exec-Program = "/usr/local/bin/do_start.sh" DEFAULT Acct-Status-Type == Stop Exec-Program = "/usr/local/bin/do_stop.sh" and the scripts were never executed although I had this line in the debug when receiving a Acct-Start or Acct-Stop message: <SNIP> Acct_users: Matched entry DEFAULT at line 1 (or 4 if Acct-STOP) </SNIP> And then.... Nothing ! I remembered that the version of Freeradius I was using was a (beta) CVS version: host4:~# radiusd -v radiusd: FreeRADIUS Version 1.1.0-pre0, for host i686-pc-linux-gnu, built on Dec 1 2005 at 16:32:48 Copyright (C) 2000-2003 The FreeRADIUS server project. I installed the latest version of Freeradius: host4:/home/minodida/freeradius-1.1.1# ./src/main/radiusd -v lt-radiusd: FreeRADIUS Version 1.1.1, for host , built on May 18 2006 at 16:12:22 Copyright (C) 2000-2006 The FreeRADIUS server project. And it works: I now have in the debug the following two lines that I did not have before: Acct_users: Matched entry DEFAULT at line 1 <SNIP> radius_xlat: '/usr/local/bin/do_start.sh' Exec-Program: /usr/local/bin/do_start.sh </SNIP> I hope this may help some of you... Yours, David. David Minodier FTR&D - Lannion 02 96 05 05 19
"MINODIER David RD-RESA-LAN" <david.minodier@francetelecom.com> wrote:
I remembered that the version of Freeradius I was using was a (beta) CVS version:
In the CVS head, you have to list the "exec" module in the "post-auth" section for Exec-Program & Exec-Program-Wait to work. Alan DeKok.
participants (2)
-
Alan DeKok -
MINODIER David RD-RESA-LAN