Fixed Duration Weekly, Monthly and Daily Accounts

Suman Dash sumandash at gmail.com
Sun Oct 30 14:16:41 CET 2011


Expiration is actually the validity of the account. It does not calculates
the amount of time used. If you are looking to limit the session time i.e
100 hrs Monthly or anything , you need rlm_sqlcounter with attributes like
Max-Session-Time with a value.

In conjunction with Expiration, you can use Max-Session-Time to create
packages such as 1 Month 100 Hrs Browsing etc .

Feel to send any other query if you are stuck .

Regards
Suman

On Sun, Oct 30, 2011 at 6:28 PM, Fajar A. Nugraha <list at fajar.net> wrote:

> On Sun, Oct 30, 2011 at 7:39 PM, JennyBlunt <jennyshoehorn at me.com> wrote:
> > How do I create a group which provides access for a preset amount of
> time,
> > for instance one day, week or month. I've tried by using expiration but
> > don't think thats right. Will the noreset parameter do this?
>
> >
> > In our current system (not freeradius), we'd set this up as a continuous
> > account which starts the counter the first time the users logs on.
>
> I actually suggest you use rlm_sqlcounter instead, which (for me) is
> easier to understand and maintain. Use the example noresetcounter from
> http://wiki.freeradius.org/Rlm_sqlcounter
>
> You can see exactly how the module counts whatever-it-uses (in the
> example it's SUM(AcctSessionTime)), and you can run the query manually
> for debugging purposes.
>
> --
> Fajar
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20111030/41f863f1/attachment.html>


More information about the Freeradius-Users mailing list