> To: redhat-list@redhat.com, inet-access@earth.com, linuxisp@lightning.com,
> ascend-users@bungi.com, portmaster-radius@livingston.com,
> portmaster-users@livingston.com
Ack, I'm crossposting...
Skeeve Stevens <skeeve@skeeve.net> writes:
> Greetings all,
>
> I have a client who wants to be able to look up the hours that each
> dialup user used each month.... not an unreasonable request ;)
>
> He also wants users to be able to go to a webpage and be able to see
> how many hours they have used so far for the current month.... also not an
> unreasonable request.
I've added radius support in Sac, a beta release of which is available at:
mama.indstate.edu:/linuc/sac/sac-1.5.tgz
It also fixes a number of problems with 1.4.
It shouldn't be too difficult to use on a web page.
> I am not sure how to do the following:
>
> o scan the logfile for one users transactions for a single 'month'
Theorectically:
sac -am -s 01/01/96 -e 01/31/96 -R portmaster1 portmaster2 ...
> o split the logfile into seperate months
> o also what would happen if a record goes over a 2 month
> period? ie they log on at 11pm on the 30th, log off next month
Keep two months worth in your logs, not easy to do though. With sac you can do
something like this however:
cat last-months-log this-months-log | sac -w - ...
If you do use it, I'd like to know if it works or not, since I have no way
to really test its radius support.
- Steve
.--------------------------------------------------. # * # # # # # #
| Steve Baker | Unemployed | # ## # # # # #
| ice@mama.indstate.edu | System Administrator | # # # # # # # #
| Red-Hat Rulz! | Will work for hardware | # # # ## # # # #
`--- SYS-ADMIN FOR HIRE, HAVE UNIX, WILL TRAVEL ---' #### # # # ## # #