Kostas & all,

I did tests of the various combinations in the users file and ran with -xxx
... rather than dump the logs to the list I've put them up on the web if
you'd care to take a peek and see if anything catches your eye.  The one
section that seems to catch my eye and is common to the first 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

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

with the following in users, we always get a denied whether we should or
not...
test   Monthly-Session-Time > 120, Auth-Type := Reject
       Reply-Message = "Monthly time limit exceeded."
the logfile gives... http://www.starmania.ca/test/logfile2.txt 

with the following in users, we always get a denied whether we should or
not...
test   Monthly-Session-Time > 120, Auth-Type = Reject
       Reply-Message = "Monthly time limit exceeded."
the logfile gives... http://www.starmania.ca/test/logfile3.txt

and with no special entry for the test account, letting it fall through to
the default we do get logged in ok so we know the account works with no
special checks applied...
the logfile gives... http://www.starmania.ca/test/logfile4.txt

This is what I had in radiusd.conf
        counter {
                filename = ${raddbdir}/db.counter
                key = User-Name
                count-attribute = Acct-Session-Time
                reset = monthly
                counter-name = Monthly-Session-Time
                check-name = Max-Monthly-Session
                allowed-servicetype = Framed-User
                cache-size = 5000
        }

Thanks again for your input,
>>>>> Mike <<<<<


> -----Original Message-----
> On Wed, 12 Feb 2003, Mike Cisar wrote:
> What do you see when you run radiusd in debug mode (radiusd 
> -X) Also try using the Max-Daily-Session solution as 
> described in the sample radiusd.conf

> > 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
> >        Reply-Message = "You've used up more than one hour 
> > With the following result...
> > So basically same result with 0.8.1 as with 0.5
> > Ideas?
> 

> > > -----Original Message-----
> > > "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
> > >   There isn't a lot of point in debugging configurations 
> from 0.5. 
> > > Upgrade first, and odds are that will solve a lot of problems.
> > >   Alan DeKok.


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to