Sql Counter ?

2003-11-12 Thread Zoup
How Sql Counter reset account expiration date ? emm ... Example : user first connection is 12 Nov 2003 , sql counter (mountly max session) will be reset on 12 Dec or 1 dec ? is it reset every mount or after 30 day of activitation ? -- It's a poor workman who blames his tools. - List info

Sql Counter ?

2003-11-12 Thread apellido jr., wilfredo p
try to run radiusd in debugging mode ... it will show the next reset ... in your case this will be reset @ first day of december. = wilfredo pahilanga apellido jr. technical support mactan online bacolod city, philippines +63 34 4348311 If you can't hear me, it's because i'm in parentheses.

How to use counter to reject a second login after sessiontime is out

2003-08-28 Thread Yueer
Hello! I have a question to ask. I used "counter module" of freeradius to time a logged-in user. It can successfully start and can sent back the remaining online time as a "Session-Timeout" attibute when the server authenticate the user. However, when SessionT

About counter function

2003-08-27 Thread li yuehong
Hello! I have a question to ask. I used counter module of freeradius to time a logged-in user. It can successfully start and can sent back the remaining online time as a Session-Timeout attibute when the server authenticate the user. However, when SessionTime is out, the user

Re: Reply message from the counter module

2003-07-29 Thread Alan DeKok
Alexander M. Pravking [EMAIL PROTECTED] wrote: By the way, %{Simultaneuos-Use} will not work, since there's no way to expand check items from the request... Nonsense. See 'doc/variables.txt' Huh? Hmm... if it's not there, then it's trivial enough to add. ~10 lines in

Re: Reply message from the counter module

2003-07-29 Thread Alexander M. Pravking
On Tue, Jul 29, 2003 at 10:52:59AM -0400, Alan DeKok wrote: Alexander M. Pravking [EMAIL PROTECTED] wrote: By the way, %{Simultaneuos-Use} will not work, since there's no way to expand check items from the request... Nonsense. See 'doc/variables.txt' Huh? Hmm... if

Re: Reply message from the counter module

2003-07-29 Thread Alexander M. Pravking
On Mon, Jul 28, 2003 at 02:02:22PM -0400, Alan DeKok wrote: Dear developers, how about customizable messages? Something like this in radiusd.conf: messages { multiple_login = You are already logged in %{Simultaneous-Use} times\r\n timespan_violation = You are calling outside

Re: Reply message from the counter module

2003-07-28 Thread Alan DeKok
Alexander M. Pravking [EMAIL PROTECTED] wrote: Yeah, it's not the only place where configurable messages could be useful. I've already suggested such a thing, but the silence was an answer... ... Dear developers, how about customizable messages? Something like this in radiusd.conf:

Re: Reply message from the counter module

2003-07-28 Thread Alexander M. Pravking
On Mon, Jul 28, 2003 at 02:02:22PM -0400, Alan DeKok wrote: Dear developers, how about customizable messages? Something like this in radiusd.conf: messages { multiple_login = You are already logged in %{Simultaneous-Use} times\r\n timespan_violation = You are calling outside

Re: Reply message from the counter module

2003-07-28 Thread Alan DeKok
Alexander M. Pravking [EMAIL PROTECTED] wrote: By the way, %{Simultaneuos-Use} will not work, since there's no way to expand check items from the request... Nonsense. See 'doc/variables.txt' How about, say, new integer attribute like FreeRADIUS-Reply-Code, which will be automatically

Re: Reply message from the counter module

2003-07-28 Thread Alexander M. Pravking
On Mon, Jul 28, 2003 at 08:11:26PM -0400, Alan DeKok wrote: Alexander M. Pravking [EMAIL PROTECTED] wrote: By the way, %{Simultaneuos-Use} will not work, since there's no way to expand check items from the request... Nonsense. See 'doc/variables.txt' Huh? %{Attribute-Name}

Re: Reply message from the counter module

2003-07-27 Thread Alexander M. Pravking
On Sat, Jul 26, 2003 at 07:09:38PM -0700, Alex Chen wrote: I finally get the counter module to work but there is a small question about the reply message issued by the counter when the accumulated time exceeds the value of the 'check-name' attribute. I set the 'reset' to 'never' and when

Re: counter module

2003-07-26 Thread Alexander M. Pravking
On Fri, Jul 25, 2003 at 10:20:13PM -0700, Alex Chen wrote: The counter module as a configuration element 'check-name'. In the example shown in radiusd.conf it is set to Max-Daily-Session. The comment indicates that this 'Max-Daily-Session' can be specified in DEFAULT stanza. I am pretty

RE: counter module

2003-07-26 Thread Alex Chen
] Subject: Re: counter module On Fri, Jul 25, 2003 at 10:20:13PM -0700, Alex Chen wrote: The counter module as a configuration element 'check-name'. In the example shown in radiusd.conf it is set to Max-Daily-Session. The comment indicates that this 'Max-Daily-Session' can be specified

Reply message from the counter module

2003-07-26 Thread Alex Chen
I finally get the counter module to work but there is a small question about the reply message issued by the counter when the accumulated time exceeds the value of the 'check-name' attribute. I set the 'reset' to 'never' and when the limit, say, 60 seconds, is reached, the reply message says

counter module

2003-07-25 Thread Alex Chen
The counter module as a configuration element 'check-name'. In the example shown in radiusd.conf it is set to Max-Daily-Session. The comment indicates that this 'Max-Daily-Session' can be specified in DEFAULT stanza. I am pretty sure when I tried to set DEFAULT Max-Daily-Session := 20 in 'users

Re: SQL Counter disconnect dialup users

2003-06-26 Thread Yalalov Salavat
Hi all! Sorry for stupid question. I found the cause, it was in cisco config. There were no line in async interface: dialer in-band Cheers, SaLiK. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: ask about SQL Counter disconnect dialup users

2003-06-26 Thread Salavat Yalalov
Sorry, I had not so much time now. If i shall have a little more time i'll write faq about how to install freeradius + mysql + cisco for ppp users + voip. Now i should connect freeradius with MSSQL2000. And let it be... Cheers, SaLiK. - List info/subscribe/unsubscribe? See

Counter

2003-06-24 Thread Joachim Wickman
Hello, I'm testing the "pre-paid" solution (with lifetime counter) that was mentioned here on the list and is now wondering howIcan reset one counter whena client wants one more hour? // Joachim

Re: Counter

2003-06-24 Thread Alan DeKok
Joachim Wickman [EMAIL PROTECTED] wrote: I'm testing the pre-paid solution (with lifetime counter) that was mentioned here on the list and is now wondering how I can reset one counter when a client wants one more hour? See the CVS snapshots: src/modules/rlm_counter/rad_counter.pl Alan

Re: Counter

2003-06-24 Thread Lisa Casey
Hi Alan, See the CVS snapshots: src/modules/rlm_counter/rad_counter.pl Could you give me a url for finding more info about this? I've looked through the Free Radius web site and can't find it. Lisa Casey - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Counter

2003-06-24 Thread Alan DeKok
Lisa Casey [EMAIL PROTECTED] wrote: Could you give me a url for finding more info about this? I've looked through the Free Radius web site and can't find it. Umm... look for the 'CVS snapshot' link on the downloads page? Alan DeKok. - List info/subscribe/unsubscribe? See

Re: Module counter reset option

2003-06-20 Thread Kostas Kalevras
On Wed, 18 Jun 2003, Roberto Pioli wrote: I read in the radiusd.conf that the reset option fo the counter module can be user define. How can I do this? # It can also be user defined. It should be of the form: # num[hdwm] where: # h: hours, d: days, w: weeks, m

Re: module counter

2003-06-20 Thread Kostas Kalevras
On Wed, 18 Jun 2003, Roberto Pioli wrote: when he module counter return: rlm_counter: Entering module authorize code rlm_counter: Could not find Check item value pair modcall[authorize]: module counter returns noop modcall: group

Re: module counter

2003-06-20 Thread Alexander M. Pravking
On Fri, Jun 20, 2003 at 01:53:06PM +0300, Kostas Kalevras wrote: On Wed, 18 Jun 2003, Roberto Pioli wrote: when he module counter return: rlm_counter: Entering module authorize code rlm_counter: Could not find Check item value pair

Re: module counter

2003-06-20 Thread Alexander M. Pravking
On Fri, Jun 20, 2003 at 09:30:51AM -0700, Tom Emerson wrote: Content-Description: signed data On Friday 20 June 2003 3:53 am, Kostas Kalevras wrote: On Wed, 18 Jun 2003, Roberto Pioli wrote: when he module counter return: rlm_counter: Entering module authorize code rlm_counter

sql counter problem

2003-06-19 Thread Roberto Pioli
noop modcall: group authorize returns ok What does it means : rlm_sqlcounter: Could not find Check item value pair I have had the same problem with counter. TEB! - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Module counter reset option

2003-06-18 Thread Roberto Pioli
I read in the radiusd.conf that the reset option fo the counter module can be user define. How can I do this? Thanks Rob - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

module counter

2003-06-18 Thread Roberto Pioli
when he module counter return: rlm_counter: Entering module authorize code rlm_counter: Could not find Check item value pair modcall[authorize]: module counter returns noop modcall: group authorize returns ok What's the matter? Rob - List info/subscribe/unsubscribe? See http

Conditional Counter

2003-06-16 Thread Gary Petticrew
Perhaps someone can assist me with the following. I have a need for a counter that I can key from Calling-Station-ID, however I need the count attribute to be incremented ONLY when a certain Called-Station-ID is matched. I have lots of different products and we are introducing

RE: Problem getting counter to work...

2003-03-01 Thread Mike Cisar
Alan, Is there anything special required in the Instantiate, Accounting, etc sections of radiusd.conf for the example below to work (do there need to be individual calls somehow to each counter instance, and if so what is the syntax required)? I made three copies of my original counter section

RE: Problem getting counter to work...

2003-03-01 Thread Mike Cisar
Please ignore my last message... found some configuration information in the docs for the sqlcounter module that seems to work/apply for counter as well. Cheers, Mike -Original Message- Is there anything special required in the Instantiate, Accounting, etc sections of radiusd.conf

RE: Problem getting counter to work...

2003-02-21 Thread Kostas Kalevras
On Thu, 20 Feb 2003, Mike Cisar wrote: Thanks Kostas, I had just uncommented the existing counter lines in the sample radiusd.conf file not stopping to think that the sample might have them in the wrong order. I have moved the counter module down to the bottom of the list and this seems

RE: Problem getting counter to work...

2003-02-21 Thread Mike Cisar
syntax still fails (allows the user to log in regardless of the counter) with the same error in the logs of Why do you need both? The counter module will send back a Reply-Message if the user is over quota I don't need both to work, as I said your fix solves my immediate needs. However

Re: Problem getting counter to work...

2003-02-21 Thread Alan DeKok
Mike Cisar [EMAIL PROTECTED] wrote: On another note, is there a way with the counter module of making two counters... for example one that expires on a monthly basis, another on a daily or weekly basis. Create two instances of the 'counter' module. counter daily

RE: Problem getting counter to work...

2003-02-20 Thread Mike Cisar
three examples is this set of logfile lines... Thu Feb 13 19:23:25 2003 : Debug: rlm_counter: Entering module authorize code Thu Feb 13 19:23:25 2003 : Debug: rlm_counter: Could not find Check item value pair Thu Feb 13 19:23:25 2003 : Debug: modcall[authorize]: module counter returns noop

RE: Problem getting counter to work...

2003-02-20 Thread Kostas Kalevras
: modcall[authorize]: module counter returns noop With the following in users, we always get an accept whether we should or not... test Max-Monthly-Session := 120 Fall-Through = yes the logfile gives... http://www.starmania.ca/test/logfile.txt From the logfile: Thu Feb 13

RE: Problem getting counter to work...

2003-02-20 Thread Mike Cisar
Thanks Kostas, I had just uncommented the existing counter lines in the sample radiusd.conf file not stopping to think that the sample might have them in the wrong order. I have moved the counter module down to the bottom of the list and this seems to have (at least partially) solved

Re: Problem getting counter to work...

2003-02-12 Thread Alan DeKok
Mike Cisar [EMAIL PROTECTED] wrote: I am trying to set up a counter to be able to disable a particular account(s) after a certain amount of time used in a month. I've looked at the docs and scanned through the list archives, but can't seem to get it working. Note that the plan is to have

Re: Problem getting counter to work...

2003-02-12 Thread Amiri
You can find sqlcounter model if you are using sql databases for accounting. Amiri --- Alan DeKok [EMAIL PROTECTED] wrote: Mike Cisar [EMAIL PROTECTED] wrote: I am trying to set up a counter to be able to disable a particular account(s) after a certain amount of time used in a month. I've

RE: Problem getting counter to work...

2003-02-12 Thread Mike Cisar
Built RPM's and installed 0.8.1 on test server... used default radiusd.conf with default sample counter configuration, enabled counter in instantiate, authorize and accounting sessions. Added the following lines to the default users file test Daily-Session-Time 3600, Auth-Type = Reject

Problem getting counter to work...

2003-02-11 Thread Mike Cisar
I am trying to set up a counter to be able to disable a particular account(s) after a certain amount of time used in a month. I've looked at the docs and scanned through the list archives, but can't seem to get it working. Note that the plan is to have this counter reset monthly, but for testing

RE: Counter problem

2003-02-07 Thread Keith Ballard
Ah, didn't know about that one. Found some whitespace, deleted it, and all up running now, thanks. Keith -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alan DeKok Sent: 06 February 2003 14:47 To: [EMAIL PROTECTED] Subject: Re: Counter problem

Counter problem

2003-02-06 Thread Keith Ballard
Hi, I've now managed to compile the missing rlm_counter module (the gdbm-devel lib was missing). When I try and use it I get the error when it processes the 'users' file: Syntax error: Previous line is missing a trailing comma for entry DEFAULT. Radius.conf relevant bits are: counter

Re: Counter problem

2003-02-06 Thread Alan DeKok
Keith Ballard [EMAIL PROTECTED] wrote: When I try and use it I get the error when it processes the 'users' file: Syntax error: Previous line is missing a trailing comma for entry DEFAULT. If the entry looks OK, try deleting it, and re-typing it. Also watch for whitespace in lines that

Another type of counter

2002-12-30 Thread mm's
Hi In my country there are two types of payment periods in telephony. In the first of them (it is between 8:00am and 10:00pm)we pay for each 3 minutes (for example 0,08$). In second period (it is between 10:00pm and 8:00am) we pay for each 6 minutes also 0,08$. Is any possibility to summarize time

Re: counter reset

2002-12-19 Thread Kostas Kalevras
On Wed, 18 Dec 2002, Remus Anca wrote: Hi, i've succesfull use freeradius 0.8 with counter module, and reset=never, but after some weeks, my server was restarted, and i've see that the counter was reinitiated with 0 for all users. Than, i've tested my self, and after i make

counter reset

2002-12-18 Thread Remus Anca
Hi, i've succesfull use freeradius 0.8 with counter module, and reset=never, but after some weeks, my server was restarted, and i've see that the counter was reinitiated with 0 for all users. Than, i've tested my self, and after i make a freeradius stop and start, the counter was reset again

Re: Max-Daily-Session and counter module

2002-12-09 Thread oz
Oliver Zimmermann wrote: I have the problem understanding how the counter module works. Lets say I want to provide a Maximum Daily Session linit of 3600 seconds for a user on freeradius-0.7. Is the following scenario right? (sorry I can't test it for the moment): users file: -- DEFAULT

Re: Max-Daily-Session and counter module

2002-12-09 Thread Kostas Kalevras
On Sun, 8 Dec 2002, Oliver Zimmermann wrote: I have the problem understanding how the counter module works. Lets say I want to provide a Maximum Daily Session linit of 3600 seconds for a user on freeradius-0.7. Is the following scenario right? (sorry I can't test it for the moment): users

Re: Max-Daily-Session and counter module

2002-12-09 Thread Kostas Kalevras
On Mon, 9 Dec 2002, oz wrote: Oliver Zimmermann wrote: I have the problem understanding how the counter module works. Lets say I want to provide a Maximum Daily Session linit of 3600 seconds for a user on freeradius-0.7. Is the following scenario right? (sorry I can't test

Max-Daily-Session and counter module

2002-12-08 Thread Oliver Zimmermann
I have the problem understanding how the counter module works. Lets say I want to provide a Maximum Daily Session linit of 3600 seconds for a user on freeradius-0.7. Is the following scenario right? (sorry I can't test it for the moment): users file: -- DEFAULT Max-Daily-Session = 3600

Re[2]: sql counter xlat problem

2002-11-11 Thread delphi
I found a bug that stoped sqlcounters working for me. I am trying to use sqlcounter and oracle to implement download... May be this problem is specific to oracle driver (sql_oracle.c)? - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: sql counter xlat problem

2002-11-11 Thread Alan DeKok
Malcolm Caldwell [EMAIL PROTECTED] wrote: I found a bug that stoped sqlcounters working for me. Basically sql_xlat in rlm_sql is doing rlm_sql_select_query(sqlsocket,ins... ... rlm_sql_fetch_row(sqlsocket, inst) (inst-module-sql_finish_select_query)(sqlsocket, inst-config); ...

re: sql counter xlat problem

2002-11-10 Thread Malcolm Caldwell
and oracle to implement download limits/quotas. I have: sqlcounter testquota { counter-name = Test-Quota-Input-Octets check-name = Test-Quota sqlmod-inst = sql key = User-Name reset = daily query = SELECT SUM

Counter question

2002-11-04 Thread Michael O. Boev
Hello, everybody! Can I be applying a time restriction (Session-Timeout) differently, based on the current time? I mean,... If the user dials in ONLY during the daytime (i.e. Wk09-18), I want to be sending a Session-Timeout reply (e.g. :=10800). But, I've no idea what check-items should I use

Re: Counter question

2002-11-04 Thread Kostas Kalevras
On Mon, 4 Nov 2002, Michael O. Boev wrote: Hello, everybody! Can I be applying a time restriction (Session-Timeout) differently, based on the current time? I mean,... If the user dials in ONLY during the daytime (i.e. Wk09-18), I want to be sending a Session-Timeout reply (e.g. :=10800).

Problem with counter (freeradius 0.7.1)

2002-10-29 Thread Svetlana Vyslanko
Hello! I've used freeradius 0.7.1. I try to use counter in file users : pptest3 Daily-Session-Time 7200, Auth-Type := Reject Reply-Message = Your time limit is used radiusd.conf # Configuration for the counter module # # This module takes

Counter Module ignoring Accounting Packets

2002-10-02 Thread Aaron Webb
FreeRADIUS Version 0.7.1, for host i686-pc-linux-gnu. Using MySQL for authentication and accounting. I got the counter module set up and the proper entry in the radcheck table of the database, and started sending accounting packets to my RADIUS server. I noticed the following message from

Re: Counter Module ignoring Accounting Packets

2002-10-02 Thread Aaron Webb
from asking the same question. Aaron On October 2, 2002 13:25 pm, Aaron Webb wrote: FreeRADIUS Version 0.7.1, for host i686-pc-linux-gnu. Using MySQL for authentication and accounting. I got the counter module set up and the proper entry in the radcheck table of the database, and started

Daily usage counter

2002-09-05 Thread Adi Linden
Hi, Question when a daily usage counter is setup using this: # counter daily { filename = ${logdir}/db.counter key = User-Name count-attribute = Acct-Session-Time reset = daily

Re: Daily usage counter

2002-09-05 Thread Kostas Kalevras
On Thu, 5 Sep 2002, Adi Linden wrote: Hi, Question when a daily usage counter is setup using this: # counter daily { filename = ${logdir}/db.counter key = User-Name count-attribute = Acct-Session

Re: Daily usage counter

2002-09-05 Thread Adi Linden
Hi, Question when a daily usage counter is setup using this: # counter daily { filename = ${logdir}/db.counter key = User-Name count-attribute = Acct-Session-Time

Re: Daily usage counter

2002-09-05 Thread Kostas Kalevras
On Thu, 5 Sep 2002, Adi Linden wrote: Hi, Question when a daily usage counter is setup using this: # counter daily { filename = ${logdir}/db.counter key = User-Name count-attribute

Re: MultiGroup and counter module

2002-08-19 Thread Kostas Kalevras
On Sat, 17 Aug 2002, Kostas Kalevras wrote: Please try the attached patch. You should then be able to use Login-Time compares in the users file. Then you can do the following: DEFAULT Login-Time == Any1400-0200, Max-Monthly-Session := 9 Fall-Through = 1 DEFAULT Login-Time ==

R: MultiGroup and counter module

2002-08-19 Thread Alessandro Maioli
{ counter-name = Daily-Session-Time check-name = Max-Daily-Session sqlmod-inst = sql key = User-Name reset = never query = SELECT SUM(AcctSessionTime) FROM radacct WHERE UserName='%{%k}' AND AcctStartTime

Re: counter module counting too many times

2002-08-19 Thread Alan DeKok
packets for months, but with this wacky fix I could solve the problem for me. That's really the only fix. I'm using 0.5 and just noticed that when the same acct packet arrive more than once to the server, the counter module does not control the fact that it is repeated -not even if the acct_uniq

Re: MultiGroup and counter module

2002-08-17 Thread Kostas Kalevras
Subject: MultiGroup and counter module hi all I am newbie in FreeRADIUS and I am going to migrate from my NT Commercial Accounting/Radius Server to FreeRadius. my biggest problem is this : I defined a special group in my previous accounting server , and it was : 25H/month group if my

MultiGroup and counter module

2002-08-14 Thread SAber Khamooshi
25 hours per month but if they login between 2Am-7Am they could use 75 hours/month and if they login between 7Am-2PM they could use 50 hours/month I read counter module session in radiusd.conf but I couldn't find any appropriate option to accomplish such group. anybody before done it ? thanks your

counter module counting too many times

2002-08-13 Thread Alexandre Strube
acct packet arrive more than once to the server, the counter module does not control the fact that it is repeated -not even if the acct_uniq module is being used- and its count-attribute get added several times. Just checked the latest cvs version to find that this behavior remains unchanged; it has

counter module counting too many times

2002-08-13 Thread Alexandre Strube
acknowledges it.(at least on my case and someone else which wrote me months ago, but I didn't kept his email) I'm using 0.5 and just noticed that when the same acct packet arrive more than once to the server, the counter module does not control the fact that it is repeated -not even if the acct_uniq

Re: counter module counting too many times

2002-07-29 Thread Kostas Kalevras
On 25 Jul 2002, [ISO-8859-1] Moisés David [ISO-8859-1] Rincón D'Hoyos wrote: I'm using 0.5 and just noticed that when the same acct packet arrive more than once to the server, the counter module does not control the fact that it is repeated -not even if the acct_uniq module is being used

Please HELP ME..can do Session TimeOut for Replace sql counter ?,

2002-07-29 Thread Gumilar Satriawan
Hi all, Guru.. I am configuring FreeRadius Server 07 and Portslave 2001-01-19 for internet prepaid in my campuss My problem is difficult disconnect users while their login to RADIUS. I have Idea to count for each session time use Session Time Out While user Logging on, But I am not

Re: Please HELP ME..can do Session TimeOut for Replace sql counter ?,

2002-07-29 Thread Alan DeKok
Gumilar Satriawan [EMAIL PROTECTED] wrote: Alternatifely use Rlm_sqlcounter, But It intend not for each user account balance but For Each Group Defined in daily, weekly, etc.., 9 ( I have to modified in long time ). I need For each users can have Account Balance (Time Duration) and then

Please HELP ME..can do Session TimeOut for Replace sql counter ?,

2002-07-28 Thread Gumilar Satriawan
Hi all, My Guru.. I am configuring FreeRadius Server 06 and Portslave 2001-01-19 for internet prepaid.. My problem is difficult disconnect users while their login to RADIUS. I have Idea to count for each session time use Session Time Out While user Logging on, But I am not sure it will working

counter module counting too many times

2002-07-25 Thread Moisés David Rincón D'Hoyos
I'm using 0.5 and just noticed that when the same acct packet arrive more than once to the server, the counter module does not control the fact that it is repeated -not even if the acct_uniq module is being used- and its count-attribute get added several times. Just checked the latest cvs version

Re: counter module counting too many times

2002-07-25 Thread Alan DeKok
[EMAIL PROTECTED] wrote: I'm using 0.5 and just noticed that when the same acct packet arrive more than once to the server, the counter module does not control the fact that it is repeated -not even if the acct_uniq module is being used- and its count-attribute get added several times. Yes

Counter HOWTO (plus a possible bug?)

2002-05-21 Thread Eric Reischer
After fighting with the program all day, I finally figured out how to get the counter module to kick people off after a certain time limit. For all those who do not wish to rip their hair out in trying to get this working, here is a little howto. First, on your NAS you should specify your

Re: counter module and mysql

2002-04-14 Thread Alan DeKok
=?ISO-8859-1?Q?Pasi_K=E4rkk=E4inen?= [EMAIL PROTECTED] wrote: I'd like to store all authentication and accounting data in mysql and use counter module to calculate some time-stuff.. I don't think you need any patches to do that. All examples about usage of counter module are also welcome

radius.log and counter files owners when created ...

2002-03-14 Thread Do-Risika RAFIEFERANTSIARONJY
I run freeradius with : user = freerad group = freerad I reinitialized my freeradius (by deleting all log and counter files), and when i started, the radius.log file was created but was owned by root, so i had to chown freerad.freerad. Is it normal or not ? The same questions for counter

Re: radius.log and counter files owners when created ...

2002-03-14 Thread Alan DeKok
Do-Risika RAFIEFERANTSIARONJY [EMAIL PROTECTED] wrote: I reinitialized my freeradius (by deleting all log and counter files), and when i started, the radius.log file was created but was owned by root, so i had to chown freerad.freerad. Is it normal or not ? Hmmm... the server SHOULD open

Re: radius.log and counter files owners when created ...

2002-03-14 Thread Do-Risika RAFIEFERANTSIARONJY
Alan DeKok wrote: Do-Risika RAFIEFERANTSIARONJY [EMAIL PROTECTED] wrote: I reinitialized my freeradius (by deleting all log and counter files), and when i started, the radius.log file was created but was owned by root, so i had to chown freerad.freerad. Is it normal or not ? Hmmm

Re: Counter

2002-02-25 Thread Alan DeKok
Gillou [EMAIL PROTECTED] wrote: A option to add to the counter module is to set decrement of an accounting attribute instead of an increment. So, somebody can offer a prepaid service of 25h/month, and increase the customer time if he call one phone number or something similar.(if we

Re: One more question about counter

2002-02-22 Thread Alan DeKok
Rubby [EMAIL PROTECTED] wrote: here the count-attirbute is Acct-Session-Time, it can be anything else? Just like Acct-Input-Octets,Acct-Output-Octets,...etc? I read the source code about module counter ,it seems not to support it. Grab the latest CVS snapshot. I've done some minor tweaking

Re: Counter

2002-02-22 Thread Alan DeKok
Eduardo Roldan [EMAIL PROTECTED] wrote: I want to read/update this database too. But the counter module is opening the db.counter file with locking.(the default operation of the gdbm library is to open a file locked) Yes. The code SHOULD do a gdbm_open with the NOLOCK option. However

Re: Counter

2002-02-22 Thread Gillou
A option to add to the counter module is to set decrement of an accounting attribute instead of an increment. So, somebody can offer a prepaid service of 25h/month, and increase the customer time if he call one phone number or something similar.(if we resolve the db locking problem) I want

Re: Counter

2002-02-21 Thread Alan DeKok
Gillou [EMAIL PROTECTED] wrote: If I use reser = never, can I reset the counter manualy with a given value with a small perl script or C prog ? There is currently no way to do this. It shouldn't be hard to do from a small program. Alan DeKok. - List info/subscribe/unsubscribe? See

Counter

2002-02-20 Thread Gillou
Hi, In the rlm_counter module, I see that I can reset counter at given interval. If I use reser = never, can I reset the counter manualy with a given value with a small perl script or C prog ? I need this, for example, to reactivate a user if his counter is over quota or to give him more

Re: Counter module doesn't work

2002-02-12 Thread Andrew Kelaidis
the Authorization section of the radius.conf to: authorize { sql counter } I hope that this will help someone. From: Kostas Kalevras [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Counter module doesn't work Date: Mon, 11 Feb 2002 14:52:42 +0200 (EET

Counter module doesn't work

2002-02-12 Thread Andrew Kelaidis
I have installed the latest snapshot of freeRadius and I am using mySQL for AAA. I would also like to limit the online time for all users. Here is a part of my radiusd.conf file: counter { filename = ${raddbdir}/db.counter key = User-Name

RE: Counter module doesn't work

2002-02-12 Thread Kostas Kalevras
On Mon, 11 Feb 2002, Peter Santiago wrote: Based on what I'm reading below ... to set time limits for my users, I need to use a database (MySQL). Do I? I'm using portslave wih freeradius If I just want to use /etc/passwd for authentication... where and how should I store the time limits

Counter module doesn't work

2002-02-11 Thread Andrew Kelaidis
I have installed the latest snapshot of freeRadius and I am using mySQL for AAA. I would also like to limit the online time for all users. Here is a part of my radiusd.conf file: counter { filename = ${raddbdir}/db.counter key = User-Name

Re: Counter module doesn't work

2002-02-11 Thread Kostas Kalevras
On Mon, 11 Feb 2002, Andrew Kelaidis wrote: I have installed the latest snapshot of freeRadius and I am using mySQL for AAA. I would also like to limit the online time for all users. Here is a part of my radiusd.conf file: counter { filename = ${raddbdir

icradius/freeradius/TotalTimeLimit/counter ...

2002-01-11 Thread Do-Risika RAFIEFERANTSIARONJY
and Monthly-Time-Limit of icradius should be implemented in freeradius, is it already done or not ? * If not, with freeradius again, about the counter module, - is it posible to have more than 1 counters in a config file ? - isn't it possible to 'never' reset a counter ('reset = never') ? I

Re: icradius/freeradius/TotalTimeLimit/counter ...

2002-01-11 Thread aland
Do-Risika RAFIEFERANTSIARONJY [EMAIL PROTECTED] wrote: * I saw in the freeradius mailing list archive that Total-Time-Limit and Monthly-Time-Limit of icradius should be implemented in freeradius, is it already done or not ? No. But you can use the 'counter' module to do the same thing

Re: Expiration, Counter and Reset Value

2001-12-19 Thread aland
authenticate them? You can run a shell program when a request is seen. That shell program can set up any per-user configuration you desire. 2. User-defined reset value in the counter module. i.e. reset = 14 # counter will reset to zero after 14 days reset = 60 # resets after

Re: Expiration, Counter and Reset Value

2001-12-19 Thread Kostas Kalevras
so. Expiration is a check item which could be stored in an ldap/mysql database. The user is responsible of changing the value. You could just run an exec-program on login that will update the expiration attribute to the correct value. 2. User-defined reset value in the counter module. i.e

Expiration, Counter and Reset Value

2001-12-18 Thread power jessie
Are there any ways I can do these in freeradius (0.4)? 1. 'Expiration' will be set based on firt login date. i.e. an account will expired 90 days after first usage. Expiration = FirstLoginDate + 90 Days 2. User-defined reset value in the counter module

RE: trying to understand module counter?

2001-09-06 Thread Mustafa N. Deeb
in the 'radiusd.conf' file. You would want something similar to: counter { filename = ${raddbdir}/db.counter key = User-Name count-attribute = Acct-Session-Time reset = monthly counter-name = Daily-Session-Time

Re: trying to understand module counter?

2001-09-05 Thread Chris Parker
similar to: counter { filename = ${raddbdir}/db.counter key = User-Name count-attribute = Acct-Session-Time reset = monthly counter-name = Daily-Session-Time check-name = Total-Session

  1   2   >