Hello,

Paul Hampson wrote:
On Mon, Jun 21, 2004 at 03:15:29PM +0500, George Chelidze wrote:

Hello,

I need to add one column to radacct table and set it according to values inserted into table on stop packet receipt. The external program is coded in C. What if I place acct_users after sql in accounting section? Will it work? The example of possible accounting section from radiusd.conf is listed below:


accounting {
        sql
        acct_users
}

section from acct_users

DEFAULT Acct-Status-Type == Stop
        Exec-Program = "/path/program arguments"


Sure I can test it myself but would be great to hear your input. If it won't work, is there any other way?


You might be better off using rlm_exec (if you're using a recent enough
FreeRADIUS version) and testing for 'Stop' or otherwise in that script,
rather than using Exec-Program, which is somewhat deprecated, and known
to have threading issues (on some platforms...)


Paul thanks for your quick response. I use freeradius 0.9.3. it's recent enough isn't it? I wonder if the schema I described will work or not. If it will, it will prove my understanding is correct. I'll read some docs for rlm_exec. Thanks


Best Regards,
--
George Chelidze


- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to