acct-session-start attribute ?

Jeremy Ravel Jeremy.Ravel at etu.univ-savoie.fr
Tue Jun 9 09:07:52 CEST 2015


Hi, 
I try it and now it's my condition is always false, whatever the date. 
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} -> 
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" 
I am bit confused, do you have any idea how should i write the date ? 

----- Mail original -----

De: "Alan DeKok" <aland at deployingradius.com> 
À: "FreeRadius users mailing list" <freeradius-users at lists.freeradius.org> 
Envoyé: Vendredi 5 Juin 2015 21:16:30 
Objet: Re: acct-session-start attribute ? 

On Jun 5, 2015, at 3:47 AM, Jeremy Ravel <Jeremy.Ravel at etu.univ-savoie.fr> wrote: 
> But I still get this error : 
> 
> Fri Jun 5 09:32:27 2015 : Info: ++? if (Acc-Start-Date < "%{Current-Time}") 

Hmm... try: 

if (control:Acc-Start-Date < "%{Current-Time}") { 

Alan DeKok. 


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html 



More information about the Freeradius-Users mailing list