acct-session-start attribute ?
Jeremy Ravel
Jeremy.Ravel at etu.univ-savoie.fr
Thu Jun 4 17:17:11 CEST 2015
Hi again,
I read all your mails, but I am sorry i still don't understand how it's work.
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
I created the attribute Acc-Start-Date in the file dictionnary.conf.
And in the /site-available/default in the authorise section
if ( Acc-Start-Date < "%{Current-Time}" ) { reject }
So I guess, i have to add something to allow freeradius to find my custom attribute.
Thanks again for your time.
----- Mail original -----
De: "Alan DeKok" <aland at deployingradius.com>
À: "FreeRadius users mailing list" <freeradius-users at lists.freeradius.org>
Envoyé: Mardi 2 Juin 2015 14:17:36
Objet: Re: acct-session-start attribute ?
On Jun 2, 2015, at 5:13 AM, Jeremy Ravel <Jeremy.Ravel at etu.univ-savoie.fr> wrote:
> Thanks for your time,
> But I am a bit lost, I am beginner on freeradius.
> - Should I create the sql query to get my attribute(acc-start-date) ? Or freeRadius will do it himself ?
You should start reading my messages. I've explained this repeatedly.
>> Right now, you're trying to do it the most complicated way possible. I have no idea why.
> If you see a easier way to do it, can you give a hint how I should do it ?
I already explained that.
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list