Adding Filter-Id Attribute to Accounting Requests

Alan Buxey alan.buxey at gmail.com
Wed Oct 24 17:28:23 CEST 2018


Please read what Alan already said, down below
Yes, just add that sql.authorize to your accounting section. Run server in
debug mode to see what that is doing. (This calls the authorize method for
your configured SQL module just as normally in the access request
packets...but for an accounting packet instead (as a plain call to SQL
will, in accounting section, just do the normal save data thing ;) ) )

alan


On Wed, 24 Oct 2018, 14:54 Alan DeKok, <aland at deployingradius.com> wrote:

> On Oct 24, 2018, at 9:48 AM, Alessandro Romano <
> alessandro.romano at positivonet.it> wrote:
> >
> > i need to add the attribute "Filter-ID" from database radusergroup to
> > accounting-request packet.
> >
> > At the moment i retreive the attribute only in access-accept packet
>
>   You can run the SQL "authorize" queries when the server receives an
> accounting packet:
>
> accounting {
>         ...
>         sql.authorize
>         ...
> }
>
>   It will run *all* of the SQL authorization queries.  But it will mostly
> do what you want.
>
>   Alan DeKok.
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list