problem with rlm_counter module when reset option is set to never

Alan DeKok aland at deployingradius.com
Tue May 26 15:49:26 CEST 2009


Ahmed Nifaz Faizabadi wrote:
....
>>> counter daily {
>>>        counter-name = Max-All-Session-Time
>>>        check-name = Max-All-Session
>>>        key = User-Name
>>>        reset = never
...
>>> I am observing that the user accounting record is not deleted from
>>> rlm_counter module once the user has used his allocated time.
...
>    This would increase the accounting file size indefenitely and cause
> some other problems as the user records are not at all being deleted.

  See the configuration: "reset = never" means "never reset".  Which
means "don't reset".

>   I tried that but that accounting file is in binary or some other
> encrypted format. Will you please let me know about how to delete that
> accounting record or how to convert that to simple text file ( which
> would make easy deleting expired records) .

  It's just a DBM file.  See the "rad_counter.pl" file in the source
tree.  It shows how to edit the file.

  Alan DeKok.



More information about the Freeradius-Users mailing list