On 12/05/2012 12:53 PM, Alexandre J. Correa (Onda) wrote:

Finished request 0.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Accounting-Request packet from host 192.168.2.200 port 55834,
id=129, length=149
         Service-Type = Framed-User
         Framed-Protocol = PPP

As you can see - Accounting packets don't automatically contain attributes you send in an Accept.

The only attribute that is "reflected" from Accept to accounting packets is "Class".

You have two options;

1. As per Alan's suggestion, use a database to store the quota (in post-auth) then re-read it in accounting/preacct.

2. (ab)use the "Class" attribute for it, if your NAS is RFC-compliant and properly reflects the attribute. Be warned: I've seen some NASes that do this usually, but fail in e.g. 1% of cases.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to