Since I'm not overly skilled in the ways of freeradius, my answer isn't
going to be a built in method.

I'm basing my idea on these concepts:

You have accounting turned on.
You will be populating a users file/db with pre-defined logins.

Thus what you could do is write a script that reads the accounting data
and watches for the first instance of each login, and then sets it to
expire 30 days from login time, and just run it once a day.

If you wanted to use the same set of logins over and over, you can then
just set the script to reset the password an expiration at the end of
the time period, allowing you to just reprint tickets..

Imho it would be better to use a db setup.. But to each his own.

-greg

 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of sarky
Sent: Tuesday, August 17, 2004 7:45
To: [EMAIL PROTECTED]
Subject: Re: Re: 30Day Limit

What i am trying to do is this:

have an account which is valid for 30 days, but the 30day start counting
from the first day the user logs in to the system.

I am thinking that the only way i can do it is have the system to give
them access for 30days X 24Hours =720hours, i am sure that i should be
able to do that query.

But the 720hours is regardless of the user being loged in or not, it
will start count from day one until 720 expires.


sarky

On Tue, 17 Aug 2004 20:04:19 +0800, Leo Lei wrote:
>
>> But assuming i dont know the initial date, for example if i am 
>> selling scratch cards and i want it to automaticaly take the 1st day 
>> they use the card to be in place of the date given.
>>
> Sorry, I am not a English native speaker, and then i don't understand 
> what do you mean above.
>
>
> =nsinit=
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html



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



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

Reply via email to