Define New Attribute
Phil Mayers
p.mayers at imperial.ac.uk
Wed Dec 5 15:20:45 CET 2012
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.
More information about the Freeradius-Users
mailing list