Hi, I have a problem with Accounting-script-execution in raddb/acct_users : -- DEFAULT Acct-Status-Type == Stop Exec-Program = "echo PRUEBA >> /home/pru.txt" --
The file where the program writes has written premission for everybody: -- -rw-rw-rw- 1 root root 0 mar 11 08:36 pru.txt -- I execute radiusd like root in debug mode: -- # radiusd -s -X -- The log appear to be OK but it doesnīt execute the script: -- rad_recv: Accounting-Request packet from host 10.1.1.200:1646, id=13, length=333 Acct-Session-Id = "00000022" Called-Station-Id = "0002.8a79.c907" Calling-Station-Id = "000c.42c8.5h5e" Cisco-AVPair = "ssid=SSID" Cisco-AVPair = "nas-location=unspecified" Cisco-AVPair = "vlan-id=346" Cisco-AVPair = "auth-algo-type=eap-ttls" Acct-Authentic = RADIUS Cisco-AVPair = "connect-progress=Call Up" Acct-Session-Time = 135 Acct-Input-Octets = 132828 Acct-Output-Octets = 291212 Acct-Input-Packets = 503 Acct-Output-Packets = 478 Acct-Terminate-Cause = Lost-Carrier Cisco-AVPair = "disc-cause-ext=No Reason" User-Name = "user" Acct-Status-Type = Stop NAS-Port-Type = Wireless-802.11 Cisco-NAS-Port = "284" NAS-Port = 284 Service-Type = Framed-User NAS-IP-Address = 10.1.1.200 Acct-Delay-Time = 0 Processing the preacct section of radiusd.conf modcall: entering group preacct for request 12 modcall[preacct]: module "preprocess" returns noop for request 12 rlm_acct_unique: Hashing 'NAS-Port = 284,Client-IP-Address = 10.1.1.200,NAS-IP-Address = 10.1.1.200,Acct-Session-Id = "00000022",User-Name = "user"' rlm_acct_unique: Acct-Unique-Session-ID = "8407a49fc8bced26". modcall[preacct]: module "acct_unique" returns ok for request 12 rlm_realm: No '@' in User-Name = "user", looking up realm NULL rlm_realm: Found realm "NULL" rlm_realm: Adding Stripped-User-Name = "user" rlm_realm: Proxying request from user user to realm NULL rlm_realm: Adding Realm = "NULL" rlm_realm: Accounting realm is LOCAL. modcall[preacct]: module "suffix" returns noop for request 12 acct_users: Matched DEFAULT at 10 modcall[preacct]: module "files" returns ok for request 12 modcall: group preacct returns ok for request 12 Processing the accounting section of radiusd.conf modcall: entering group accounting for request 12 radius_xlat: '/var/log/radius/radacct/10.1.1.200/detail-20050311' rlm_detail: /var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d expands to /var/log/radius/radacct/10.1.1.200/detail-20050311 modcall[accounting]: module "detail" returns ok for request 12 modcall[accounting]: module "unix" returns ok for request 12 radius_xlat: '/var/log/radius/radutmp' radius_xlat: 'user' modcall[accounting]: module "radutmp" returns ok for request 12 modcall: group accounting returns ok for request 12 radius_xlat: 'echo PRUEBA >> /home/pru.txt' Exec-Program: echo PRUEBA >> /home/pru.txt Sending Accounting-Response of id 13 to 10.1.1.200:1646 Finished request 12 Going to the next request -- The detail_log works perfectly and the authentication/authorization too (EAP-TTLS,PAP, with LDAP users), but the Exec-program doesn`t work. I've tried with 'Exec-Program = "logger stop-received"' but nothing happen. Itīs the same with CentOS 3.4 (like RHEL3update4, freeradius-1.0.1) and CentOS 4 (like RHEL4, freeradius 1.0.1-2), anybody has the same problem? I'm doing something wrong ? Thanks in advance fow any help, Luis A. Herrero - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html