accounting exec when Acct-Status-Type == Stop

tnt at kalik.co.yu tnt at kalik.co.yu
Wed Jul 11 14:49:52 CEST 2007


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 at 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 at hotmail.com>Reply-To: FreeRadius users mailing list <freeradius-users at lists.freeradius.org>To: freeradius-users at 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 
>
>
>




More information about the Freeradius-Users mailing list