Thanks for the detail mail.

>Hello Mukund,
>Have faced this problem a while back when I was working on an accounting
>software which extracts user activity based on squid / sendmail logs.


This is also my application.

>
>- Whenever a user is authenticated, squid puts a Denied entry in the
>log, signifying that the access was denied because the user was not
>authenticated. The Squid http style log would show you the username
>involved too. This can be taken as the login time.


On heavy load the squid log file runs in to few hundred megs, and poking in
to these file even once in 10 min would create problem.

>

>out the time difference between every log entry. If the difference in
>any two log entries is more than, say 5 mins, then take the first entry
>as the logout time and the next one as the next login. This is cruddy
>and very inaccurate, but it works.


Again for haevy server this would not work.

>
>- Write a small application which runs on the client side. The user
>specifies his user / password to the app, the app connects to the server
>which is running another small app which takes this login / pass, adds
>the client's IP to the allowed IP's acl and runs squid -k reconfigure
>and if you want, update your accounting entries from here directly. When
>the client program exits, remove the client IP from the allowed acl's
>and mark a user logout. This is cruddy too, but if implemented well,
>would work perfectly.


The cyber cafe for which I am working is bit high end type with 64/128 kbps
leased line and 40-50 clients.
>
>For us, things got more interesting when we were required to generate
>the accounting data in real time (e.g. for a cybercafe) for which we had



I was thinking of make the auth_ttl of 30 minutes so that user is kicked off
in 30 min, and he has to relogin. And every time user logs in, 30 min are
reduced from his total allowable time.
But thats not the gentleman way out...;-)

Regards,
Mukund Deshmukh
Beta Computronics Pvt. Ltd.
Web site - http://betacomp.com




_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to