Donovan,
I use radiusreport to generate usage from the beginning of the month to
a specific day (eg. hrs-20010901-20010926). I wrote a perl script to
output a CSV ("username","4.5" where 4.5 is hours) file with users
usage. It should be fairly easy to have a script run via cron job that
would add users to a unix group ( abusers? :) that radius would reject
based on said group membership. You could setup a cron job to remove
everyone from the group at the beginning of every month as well.
I can give you the cod I'm using if you want, but it is by no means the
cleanest perl code in the world. I also have a cgi I wrote (uses POP
auth) to provide users with total (# of hours) and detailed usage (every
connection - time, kb, port, etc) based on radius report. If anyone's
interested, let me know.
Note: I'm using cistron on the box that has a config similar to that below.
____SNIP____
DEFAULT Auth-Type = System, Group != abusers
____SNIP____
Cheers,
Mike
Donovan Hill wrote:
> The more experienced users on this list may know for sure, but I
> remember seeing patch that'd boot someone off after X hours. I would
> surmise that it could be modified to do what you want.
>
> Otherwise, I'd write a script to analyze the log every 'X' hours and
> disable the user if their time exceeds that.
>
> At 02:31 PM 9/25/2001, you wrote:
>
>> Does anyone know if it is possible to have Free Radius keep accounting
>> logs of time for each user for every month and then if it exceeds a
>> certain value (ie- say 200 hours) that it will disable the account until
>> the next month comes? Or if there is some 3rd party software add-on
>> that can do this?
>>
>> Thanks,
>> Russell
>>
>>
>> -
>> List info/subscribe/unsubscribe? See
>> http://www.freeradius.org/list/users.html
>
>
> A side note and off topic to this thread:
>
> I've started using FreeRadius to log h323 sessions (ie, voice calls.)
> and it is working great :-)
>
> We are in the process of writing billing software to replace an $8000
> package that doesn't do what we want how we want it. (and I'm not
> terribly impressed with the software either.).
>
> The only thing I have left to do is writing a parser that reformats the
> date so that the VB (gag) programmer can parse the files easier.
>
> Thanks for the great work. It has saved me a lot of headaches.
>
>
> Donovan Hill
> Electronics Engineering Technologist.
> Vancouver Teleport
> 1-604-881-8500
> 1-866-881-8500
> [EMAIL PROTECTED]
>
>
> - List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
>
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html