Opposite of Expiraton attribute?

Phil Mayers p.mayers at imperial.ac.uk
Mon Jun 20 12:01:23 CEST 2011


On 06/20/2011 10:53 AM, Phil Mayers wrote:

> %S expands to an "SQL time"; e.g. a few minutes ago:
>
> 2011-06-20 10:48:49
>
> ...so in radcheck you can put:
>
> Current-Time-Date >= 2011-07-01 00:00:00

FYI, there is also:

%D

...which expands to:

20110701

...so you can use this to populate a Current-Date attribute, do day 
comparisons without time, and optionally use the build-in Current-Time 
to compare times within the day.



More information about the Freeradius-Users mailing list