permit access on date/hour intervals and policy.conf problem

Franz Angeli franz.angeli at gmail.com
Tue May 19 20:50:01 CEST 2015


with attribute set at integer i have:

++- entering policy check_validity {...}
expand: %l -> 1432061274
+++[control] returns noop
+++? if (control:Start_Time > control:System-Date)
Failed parsing "control:System-Date": Unknown value
control:System-Date for attribute Start_Time
+++? if (control:Stop_Time < control:System-Date)
Failed parsing "control:System-Date": Unknown value
control:System-Date for attribute Stop_Time
++- policy check_validity returns noop

but is strange
expand: %l -> 1432061274
+++[control] returns noop


for

System-Date := "%l"

?

2015-05-19 20:43 GMT+02:00 Alan DeKok <aland at deployingradius.com>:
> On May 19, 2015, at 2:35 PM, Franz Angeli <franz.angeli at gmail.com> wrote:
>
>> now i'm using:
>>
>> ATTRIBUTE System-Date 3002 date
>> ATTRIBUTE Start_Time 3000 date
>> ATTRIBUTE Stop_Time 3001 date
>
>   You have to change the contents of the SQL database to contain dates, too.
>
>   Or, just leave the dictionary entries as "integer".
>
>   Alan DeKok.
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list