Accounting additional attributes
Hello again, for any reason the attributes ADSL-Agent-Circuit-Id und ADSL-Agent-Remote-Id shall be accounted. My NAS sends them with each packet to the radius but there are no columns for them in the table radacct. So in my infinite naivity I simply would add this columns to table radacct and modify the SQL query "accounting_start_query" from /sql/mysql/dialup.conf so that these values are written each time an accounting starts (sure they must be only accounted once per session). Is this a legitime way or is it dangerous to modify the structure of the table radacct for any reason and there is a better way to account additional attributes? Many thanks in advance! Uwe Freier
On Jul 21, 2016, at 2:09 PM, Uwe Freier <uwe@freier.de> wrote:
for any reason the attributes ADSL-Agent-Circuit-Id und ADSL-Agent-Remote-Id shall be accounted. My NAS sends them with each packet to the radius but there are no columns for them in the table radacct. So in my infinite naivity I simply would add this columns to table radacct and modify the SQL query "accounting_start_query" from /sql/mysql/dialup.conf so that these values are written each time an accounting starts (sure they must be only accounted once per session).
That's the correct way to do it. Alan DeKok.
participants (2)
-
Alan DeKok -
Uwe Freier