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.<br>
<br>In conjunction with Expiration, you can use Max-Session-Time to create packages such as 1 Month 100 Hrs Browsing etc .<br><br>Feel to send any other query if you are stuck .<br><br>Regards<br>Suman<br><br><div class="gmail_quote">
On Sun, Oct 30, 2011 at 6:28 PM, Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net">list@fajar.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Sun, Oct 30, 2011 at 7:39 PM, JennyBlunt <<a href="mailto:jennyshoehorn@me.com">jennyshoehorn@me.com</a>> wrote:<br>
> How do I create a group which provides access for a preset amount of time,<br>
> for instance one day, week or month. I've tried by using expiration but<br>
> don't think thats right. Will the noreset parameter do this?<br>
<br>
><br>
> In our current system (not freeradius), we'd set this up as a continuous<br>
> account which starts the counter the first time the users logs on.<br>
<br>
</div>I actually suggest you use rlm_sqlcounter instead, which (for me) is<br>
easier to understand and maintain. Use the example noresetcounter from<br>
<a href="http://wiki.freeradius.org/Rlm_sqlcounter" target="_blank">http://wiki.freeradius.org/Rlm_sqlcounter</a><br>
<br>
You can see exactly how the module counts whatever-it-uses (in the<br>
example it's SUM(AcctSessionTime)), and you can run the query manually<br>
for debugging purposes.<br>
<font color="#888888"><br>
--<br>
Fajar<br>
</font><div><div></div><div class="h5">-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</div></div></blockquote></div><br>