Usage monitoring Perl script

Alan DeKok aland at
Sat Dec 1 02:32:02 CET 2012

amanda edades wrote:
> I am able to run the script correctly in the authorize section, but when
> calling it from the accounting section, it does not grab the value, and
> just designates the cap as 0, causing all future comparisons to conclude
> the user is over the cap. 

  Accounting is not authorization.  You are populating the attribute in
the authorize section via an SQL query, when the server gets an
Access-Request.  You need to do the same thing for the accounting section.

> How do I reference radgroupcheck from the accounting section of my Perl
> script to pull these values?

  You can list "sql.authorize" in the "accounting" section.

  Alan DeKok.

More information about the Freeradius-Users mailing list