Re[2]: daily limit

This is a discussion on Re[2]: daily limit within the FreeRADIUS Users forums, part of the Networking and Network Related category; Monday, May 9, 2005, 9:34:05 PM, you wrote: SE> Hm... maybe you should set the SQL statements ...


Go Back   Usenet Forums > Networking and Network Related > FreeRADIUS Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-11-2005
avudz
 
Posts: n/a
Default Re[2]: daily limit


Monday, May 9, 2005, 9:34:05 PM, you wrote:

SE> Hm... maybe you should set the SQL statements in your sqlcounter.conf file
SE> that can be usually found in /etc/raddb or
SE> /usr/local/etc/raddb depending on
SE> distribution...

SE> You can define the different counters for your vouchers that will count time
SE> or traffic by defining them in the file I mentioned...

SE> I dont know, but maybe you should take a look at
SE> /usr/share/doc/packages/freeradius/rlm_sqlcounter if you already didnt do
SE> that...

hello, i still cant solve the problem about 1 day limit. now im thinking to put in
sqlcounter.conf :

sqlcounter hourcounter {
counter-name = Max-Hour-Session-Time
check-name = Max-Hour-Session
sqlmod-inst = sql
key = User-Name
reset = never
query = "SELECT SUM(AcctSessionTime - GREATEST((%b -
UNIX_TIMESTAMP(AcctStartTime)), 0)) FROM radacct WHERE UserName='%{%k}' AND
UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime > '%b'"
}

and i set 86400 in radgroupcheck, and input :

INSERT INTO radgroupcheck (id,GroupName,Attribute,Value,op)
-> VALUES
('','plan_name','Password-Expire','86400',':=');

is it will work regard to my case ? the point is, customer cant login
after next day, the login voucher will valid for twenty four hours
from the first time login. please advice. thanks


--
Best regards,
avudz


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:33 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0