I seem to have the same problem here, also with version 1.0.1 (haven't tried it with < 1.0 though...)

Regards,
   Evert

Mike O'Connor wrote:
Hi All

I have been using freeradius 0.9.3 for a long time and the acct_users file below has all ways work well (did have a problem where it would just stop running the script sometimes)

I upgraded be 1.0.1 because I was having trouble with the ippool code not sending a Framed-IP-Address every time. (This seems to be fixed in this version)

But now I'm have a problem where my script never gets run, even thought the log below shows it being run. All the file permission are set with ownership by the freeradius user.

Any ideas would be great.

Thanks

Mike



---- acct_user ---
#
# $Id: acct_users,v 1.3.4.1 2003/08/26 17:41:48 phampson Exp $
#
# This is like the 'users' file, but it is processed only for
# accounting packets.
#
DEFAULT Acct-Status-Type == Start
 Exec-Program = "/usr/sbin/set_filter.php"
# Exec-Program = "/usr/bin/php4 -q /usr/sbin/set_filter.php"
#
DEFAULT Acct-Status-Type == Stop
 Exec-Program = "/usr/sbin/set_filter.php"
#
#DEFAULT Acct-Status-Type == Alive
#  Exec-Program = "printenv >> /tmp/alive-env.dump"
#
#  For information on how the attributes from the request are passed
#  to the program, see 'doc/variables.txt'
#

-- Exec-Program Running (maybe) ---
rlm_sql (sql): Reserving sql socket id: 10
rlm_sql_postgresql: query: UPDATE radacct ??SET AcctStopTime = (now() - '0'::interval), AcctSessionTime = '701', ??AcctInputOctets = (('0'::bigint << 32) + '183922'::bigint), ??AcctOutputOctets = (('0'::bigint << 32) + '755249'::bigint), ??AcctTerminateCause = 'User-Request', AcctStopDelay = '0', ??FramedIPAddress = NULLIF('202.xx.xx.xx', '')::inet, ConnectInfo_stop = '' ??WHERE AcctSessionId = '001E64D7' AND UserName = 'gcrispin' ??AND NASIPAddress = '202.xx.xx.xx' AND AcctStopTime IS NULL
rlm_sql_postgresql: Status: PGRES_COMMAND_OK
rlm_sql_postgresql: affected rows = 1
rlm_sql (sql): Released sql socket id: 10
rlm_ippool: Searching for an entry for nas/port: 202.xx.xx.xx/152
rlm_ippool: Deallocated entry for ip/port: 202.xx.xx.xx/152
rlm_ippool: num: 0
Exec-Program: /usr/sbin/set_filter.php
Sending Accounting-Response of id 110 to 202.xx.xx.xx:39753



-- Exec-Program Running with -xx --
radius_xlat: '/tmp/sqltrace.sql'
rlm_sql (sql): Reserving sql socket id: 31
rlm_sql_postgresql: query: UPDATE radacct ??SET AcctStopTime = (now() - '0'::interval), AcctSessionTime = '48', ??AcctInputOctets = (('0'::bigint << 32) + '16176'::bigint), ??AcctOutputOctets = (('0'::bigint << 32) + '45690'::bigint), ??AcctTerminateCause = 'User-Request', AcctStopDelay = '0', ??FramedIPAddress = NULLIF('202.xx.xx.xx', '')::inet, ConnectInfo_stop = '' ??WHERE AcctSessionId = '001E651E' AND UserName = 'matt' ??AND NASIPAddress = '202.xx.xx.xx' AND AcctStopTime IS NULL
rlm_sql_postgresql: Status: PGRES_COMMAND_OK
rlm_sql_postgresql: affected rows = 1
rlm_sql (sql): Released sql socket id: 31
modcall[accounting]: module "sql" returns ok for request 0
rlm_ippool: Searching for an entry for nas/port: 202.xx.xx.xx/308
rlm_ippool: Deallocated entry for ip/port: 202.xx.xx.xx/308
rlm_ippool: num: 0
modcall[accounting]: module "main_pool" returns ok for request 0
modcall: group accounting returns ok for request 0
radius_xlat: '/usr/sbin/set_filter.php'
Exec-Program: /usr/sbin/set_filter.php
Sending Accounting-Response of id 116 to 202.xx.xx.xx:39753



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




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

Reply via email to