Hi,
I created the attribute Acc-Start-Date in the file dictionnary.conf. Is it "date" or "integer"? It's date ATTRIBUTE Acc-Start-Date 3003 date
But I still get this error : Fri Jun 5 09:32:27 2015 : Info: ++? if (Acc-Start-Date < "%{Current-Time}") Fri Jun 5 09:32:27 2015 : Info: expand: %{Current-Time} -> Fri Jun 5 09:32:27 2015 : Info: (Attribute Acc-Start-Date was not found) Fri Jun 5 09:32:27 2015 : Info: ? Evaluating (Acc-Start-Date < "%{Current-Time}") -> FALSE Fri Jun 5 09:32:27 2015 : Info: ++? if (Acc-Start-Date < "%{Current-Time}") -> FALSE I am using freeradius V2 root@radius-dev1:~# freeradius -v freeradius: FreeRADIUS Version 2.1.12 ----- Mail original ----- de: "Alan DeKok" <aland@deployingradius.com> À: "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org> Envoyé: Jeudi 4 Juin 2015 17:20:52 Objet: Re: acct-session-start attribute ? On Jun 4, 2015, at 11:17 AM, Jeremy Ravel <Jeremy.Ravel@etu.univ-savoie.fr> wrote:
So i got in my sql database Username || Attribute || op || Value User User-Password := pass User Acc-Start-date := Jun 8 2015 08:50:46 CEST
That should work.
I created the attribute Acc-Start-Date in the file dictionnary.conf.
Is it "date" or "integer"? That matters.
And in the /site-available/default in the authorise section if ( Acc-Start-Date < "%{Current-Time}" ) { reject }
That should work.
So I guess, i have to add something to allow freeradius to find my custom attribute.
No. It should work. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html