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 the problem. I can now get the
counter working using the
test Max-Monthly-Session := 120
Fall-Through = yes
syntax, which solves my immediate problem THANKS! However, the
test Monthly-Session-Time > 120, Auth-Type = Reject
Reply-Message = "Monthly time limit exceeded."
syntax still fails (allows the user to log in regardless of the counter)
with the same error in the logs of
rlm_counter: Entering module authorize code
rlm_counter: Could not find Check item value pair
modcall[authorize]: module "counter" returns noop
Is there anything else in the configuration I should be checking to enable
it to work with that other syntax as well? Or failing that, anything I can
do to help the authors troubleshoot why it doesn't.
Cheers,
>>>>> Mike <<<<<
> -----Original Message-----
> 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.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html