On Thu, 20 Feb 2003, Mike Cisar wrote:
> 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
>
>From the logfile:
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
[...]
Thu Feb 13 19:23:25 2003 : Debug: users: Matched DEFAULT at 203
Thu Feb 13 19:23:25 2003 : Debug: users: Matched DEFAULT at 288
Thu Feb 13 19:23:25 2003 : Debug: users: Matched DEFAULT at 307
Thu Feb 13 19:23:25 2003 : Debug: users: Matched DEFAULT at 319
Thu Feb 13 19:23:25 2003 : Debug: modcall[authorize]: module "files" returns
ok
So you have the files module *after* the counter module. How will the counter
module find the check item (Max-Monthly-Session)?
As it is clearly stated in the sample radiusd.conf:
# The module should be added in the instantiate, authorize and
# accounting sections. Make sure that in the authorize
# section it comes after any module which sets the
# 'check-name' attribute.
#
Make sure you do the above.
--
Kostas Kalevras Network Operations Center
[EMAIL PROTECTED] National Technical University of Athens, Greece
Work Phone: +30 210 7721861
'Go back to the shadow' Gandalf
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html