Insert accounting data in different tables based on realm

Francisco Amaral famaral at towerstream.com
Wed Mar 4 19:31:29 CET 2015


Fantastic I will have my guys give that a shot.

Much appreciated,

//F


________________________________________
From: Freeradius-Users <freeradius-users-bounces+famaral=towerstream.com at lists.freeradius.org> on behalf of Alan DeKok <aland at deployingradius.com>
Sent: Wednesday, March 4, 2015 9:58 AM
To: FreeRadius users mailing list
Subject: Re: Insert accounting data in different tables based on realm

On Mar 4, 2015, at 8:07 AM, Francisco Amaral <famaral at towerstream.com> wrote:
> For instance I would like to:
>
> insert accounting data for user at example.org into radiusdb.radacct
>
> insert accounting data for user at example.com into radiusdb.radaccttemp

  That’s possible.  Look at the dialup.conf files.  They will have something like:

          UPDATE ${acct_table1} \


  Just change that to:

        UPDATE %{Towerstream-Acct-Table} \

  everywhere.  Then, add that attribute to raddb/dictionary as type “string”.  Then update the attribute with whatever value you need, prior to calling the SQL module.

  Alan DeKok.


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



More information about the Freeradius-Users mailing list