2017-09-29 16:30 GMT+02:00 Alan DeKok <aland@deployingradius.com>:
On Sep 29, 2017, at 10:28 AM, Ti Ti <tt91em@gmail.com> wrote:
I tried and it said me:
"sqlcounter" modules aren't allowed in 'accounting' sections -- they have no such method.
Read the sqlcounter module documentation to see how it works.
Alan DeKok.
I read it, my doubt is not on the counters themselves, but the way to refer them. If I have the following in the policy.d I can't put check-nas-id both in auth and acct sections, but if I left only db1 in the if body, then I have to do another if statement in authorize to check for the nas-id and import the counters. ### check-nas-id { if (&NAS-Identifier =~ /test1/i) { db1 dailycounter_db1 noresetcounter_db1 } } ### server rad { ... authorize { check-nas-id ... } accounting { check-nas-id ... } ... }