<div dir="ltr">Thanks all,<div>I am currently running FreeRADIUS Version 2.1.12,</div><div>mysql version 5.1.73</div><div><br></div><div>I have set up counter.conf based on guide from <a href="http://lists.freeradius.org/pipermail/freeradius-users/2005-October/003506.html">http://lists.freeradius.org/pipermail/freeradius-users/2005-October/003506.html</a></div>
<div><br></div><div>however, I noticed the counter just keep counting without terminating the user.</div><div><br></div><div>my radgroupcheck is as follows:</div><div><div>mysql> select * from radgroupcheck;</div><div>
+----+-----------+------------------+----+-------+</div><div>| id | groupname | attribute | op | value |</div><div>+----+-----------+------------------+----+-------+</div><div>| 1 | validity | Max-Secs-Passed | := | 300 |</div>
<div>| 2 | validity | Idle-Timeout | += | 300 |</div><div>| 3 | validity | Simultaneous-Use | := | 1 |</div><div>+----+-----------+------------------+----+-------+</div><div>3 rows in set (0.00 sec)</div><div>
<br></div></div><div>my counter.conf has the following: </div><div><div>sqlcounter validity {</div><div> counter-name = All-Secs-Passed</div><div> check-name = Max-Secs-Passed</div><div> sqlmod-inst = sql</div>
<div> key = User-Name</div><div> reset = daily</div><div> query = "SELECT UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(AcctStartTime) secs_passed_since_start FROM radacct WHERE UserName = '%{%k}' LIMIT 1"</div>
<div>}</div></div><div><br></div><div>an attribute called validity and I set Max-Secs-Passed to 300.</div><div><br></div><div>however, I discover the query is not returning values in secs and I will like the user to spend only an hour a day and reset the counter the following day to zero for another 1 hour everday.</div>
<div><br></div><div>Can someone assists?</div></div>