On Jun 9, 2015, at 3:07 AM, Jeremy Ravel <Jeremy.Ravel@etu.univ-savoie.fr> wrote:
I try it and now it's my condition is always false, whatever the date.
Well... something is going wrong.
Tue Jun 9 08:56:09 2015 : Info: ++? if (control:Acc-Start-Date < "%{Current-Time}") Tue Jun 9 08:56:09 2015 : Info: expand: %{Current-Time} ->
That's bad. The Current-Time should be there. Honestly, just use v3.0.8. It's *much* better. The debug messages are clearer, too.
Tue Jun 9 08:56:09 2015 : Info: ? Evaluating (control:Acc-Start-Date < "%{Current-Time}") -> FALSE Tue Jun 9 08:56:09 2015 : Info: ++? if (control:Acc-Start-Date < "%{Current-Time}") -> FALSE Tue Jun 9 08:56:09 2015 : Info: ++[expiration] returns noop Tue Jun 9 08:56:09 2015 : Info: ++[logintime] returns noop Tue Jun 9 08:56:09 2015 : Info: ++[pap] returns updated
So i tried to do this ( i use > instead of <) if (control:Acc-Start-Date > "%{Current-Time}") { reject } And now, it's my condition is always true, so I guess I use wrong date format, so i tried some other but I get this
Tue Jun 9 09:05:14 2015 : Error: rlm_sql: Failed to create the pair: failed to parse time string "08 06 2015 09:29:58 CEST"
Because it's not in any standard format.
I am bit confused, do you have any idea how should i write the date ?
How about in the format printed out by the server? Alan DeKok.