accounting exec when Acct-Status-Type == Stop
Santiago Balaguer García said:
DEFAULT Acct-Status-Type == Start Exec-Program-Wait = "/usr/local/start.sh" DEFULT Acct-Status-Type == Stop Exec-Program-Wait = "/usr/lcal/stop.sh"
Not sure what other problems you might have, but you probably should have 'local' not 'lcal' in that script path for the Stop. -- hugh
Hugh Messenger wrote:
Santiago Balaguer García said:
DEFAULT Acct-Status-Type == Start Exec-Program-Wait = "/usr/local/start.sh" DEFULT Acct-Status-Type == Stop Exec-Program-Wait = "/usr/lcal/stop.sh"
Not sure what other problems you might have, but you probably should have 'local' not 'lcal' in that script path for the Stop.
And DEFAULT instead of DEFULT. -- Dennis Skinner Systems Administrator BlueFrog Internet http://www.bluefrog.com
Dennis Skinner quoth:
Hugh Messenger wrote:
Santiago Balaguer García said:
DEFAULT Acct-Status-Type == Start Exec-Program-Wait = "/usr/local/start.sh" DEFULT Acct-Status-Type == Stop Exec-Program-Wait = "/usr/lcal/stop.sh"
Not sure what other problems you might have, but you probably should have 'local' not 'lcal' in that script path for the Stop.
And DEFAULT instead of DEFULT.
LOL! It has been osberevd taht spleling misateks otfen go unontcied beacuse the huamn biarn is vrey good at auotmaitcally comnpesatnig for lteter tranpsosiitons and mising leters, to the exetnt that it can eevn read a praagrpah writetn lkie this witohut mcuh trobule. We tned to see waht we expcet to see, rather than what is writetn.
Dennis Skinner Systems Administrator BlueFrog Internet http://www.bluefrog.com
-- hugh
Probably because your approach is not good. How about writing a *single* sh exec and passing parameters (Acct-Status-Type and SQL-Group) to it. Format would be the same for every user/group and the program sorts out which path is taken. Ivan Kalik Kalik Informatika ISP Dana 11/7/2007, "Santiago Balaguer García" <santiagoawa@hotmail.com> piše:
Nobody understood my question. I want to know how to custom a specific account with an specific sh exec. One different for each group of accounts. And I want to do using my database.
From: Santiago Balaguer García<santiagoawa@hotmail.com>Reply-To: FreeRadius users mailing list <freeradius-users@lists.freeradius.org>To: freeradius-users@lists.freeradius.orgSubject: accounting exec when Acct-Status-Type == StopDate: Tue, 10 Jul 2007 10:58:22 +0000
hello all, i have added the following lines in acct_users file DEFAULT Acct-Status-Type == Start Exec-Program-Wait = "/usr/local/start.sh" DEFAULT Acct-Status-Type == Stop Exec-Program-Wait = "/usr/local/stop.sh" started radius in debug mode and i haven't seen Exec-Program-Wait executing those scripts. It works fine, however, I want to execute different script depending on the user group. I read from a DB for passing my radius attributes. I pass attribute Exec-Program-Wait and each username executes its one script well. However, how can I say to the freeradius that it does the same when a username does a Acct-Status-Type == stop using my DB instead of acct_users file? Thanks!
Ofertas y reservas para viajar por todo el mundo. Organiza y contrata tus viajes aquí.
->List info/subscribe/unsubscribe? See http://www.freeradius.org/list/usershtml Excursiones y escapadas a sitios mágicos. No te lo pierdas en MSN Entretenimiento
participants (4)
-
Dennis Skinner -
Hugh Messenger -
Santiago Balaguer García -
tnt@kalik.co.yu