[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Re: Unlang and variables
From:       Ti Ti <tt91em () gmail ! com>
Date:       2017-09-29 15:07:45
Message-ID: CAFiC_Xv_YntHcuUfcQzfaiQedTen-gO6NZqacYQMJZHN=qSt1g () mail ! gmail ! com
[Download RAW message or body]

2017-09-29 16:56 GMT+02:00 Alan DeKok <aland@deployingradius.com>:

> On Sep 29, 2017, at 10:50 AM, Ti Ti <tt91em@gmail.com> wrote:
> > I read it, my doubt is not on the counters themselves, but the way to
> refer
> > them.
>
>   This has been explained in previous messages.
>
> > 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.
>
>   I think you're either not describing what you want, or you're not
> reading my messages.
>
>   Alan DeKok.
>

You said:
"You will need to create multiple instances of the sql_counter module and
then reference "dailycountertime_db2" as the module to run inside of the
"if" block"

Doing this I have to use 2 if statement in 2 different policy because in
one I load db1 (to use in the accounting and session sections) and in the
other I load the counters (ex dailycountertime_db2) to use in the auth
section, logically is correct but you said that I wouldn't use 2 if
statement to check the same nas-id.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic