Re: squid-users-digest Digest V00 #176

From: Kendall Lister <kendall@dont-contact.us>
Date: Tue, 28 Mar 2000 08:26:24 +1000 (EST)

On Mon, 27 Mar 2000, Luu Trung Duong wrote:

> I have list of 100 users (working with authenticate_program is
> ncsa_auth), 50 users will access to the Internet from 1 am to 12 am
> and 50 users will access to the internet 1pm to 12pm Can i do that?
> how can i do?

Presumably you currently have:

acl all_users proxy_auth REQUIRED
http_access allow all_users

with appropriate authenticator setup.

To achieve a time split, you need to change your setup to something like
the following (beware syntax errors beyond this point):

acl morning S-A 00:00-11:59
acl evening S-A 12:00-23:59
acl morning_users proxy_auth morning_user_1 morning_user_2
acl evening_users proxy_auth evening_user_1 evening_user_2
http_access allow morning_users morning
http_access allow evening_users evening

You will probably want to use text files for the two lists of users.

--
 Kendall Lister, Systems Operator for Charon I.S. - kendall@charon.net.au
  Charon Information Services - Friendly, Cheap Melbourne ISP: 9589 7781
Received on Mon Mar 27 2000 - 15:29:05 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:52:26 MST