From owner-freebsd-questions Sat Sep 22 22:50:52 2001 Delivered-To: freebsd-questions@freebsd.org Received: from web12006.mail.yahoo.com (web12006.mail.yahoo.com [216.136.172.214]) by hub.freebsd.org (Postfix) with SMTP id 5B19C37B434 for ; Sat, 22 Sep 2001 22:50:39 -0700 (PDT) Message-ID: <20010923055039.15895.qmail@web12006.mail.yahoo.com> Received: from [61.9.188.24] by web12006.mail.yahoo.com via HTTP; Sun, 23 Sep 2001 15:50:39 EST Date: Sun, 23 Sep 2001 15:50:39 +1000 (EST) From: =?iso-8859-1?q?Keith=20Spencer?= Subject: OOPS! Re: For script wizards-> Parse a delimited list to add htusers To: fbsd In-Reply-To: <20010923005845.88867.qmail@web12006.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Sorry type folks! Line in scxenario below read... > else if not in valid nor banned list then should be > else if not in inetusers or banned list then -- Keith Spencer wrote: > Hi all, > I have an interesting problem. > I run a school network and have installed squid to > proxy for our ADSL fbsd gateway (4.3 releng) > I have figured out how to get a by-user/password > access challenge from squid. I need to be able to > kick > kids off at times. > I am into VB but know nix of Perl etc. > The ideal thing would be to have a web driven user > database on the gateway but It is likely too tricky > for me to do. (see scenario at page bottom) > How can I parse a delimited file like... > user1,password1 > user2,password2 > .... etc > using htpasswd to add each entry to my > /etc/inetusers > file > It would be even better if I could just somehow > import > the users from the NT domain. But again...know not > how. > So maybe i'll just hit it with a hammer using ftp > and > the script you might know how to do... > Anyway here is a scenario (best case) > Maybe you have suggestions for this or a neat > solution > ############################# > files = bannedlist , schooluserlist, inetusers > student fires up browser > challenged for user password > if valid ok surf > else if on banned list goodbye > else if not in inetusers or banned list then > get them to supply password > addit to htpassword file > let them in > ############################## > What do you think? > > > > > > > > > > > > > http://travel.yahoo.com.au - Yahoo! Travel > - Got Itchy feet? Get inspired! > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of > the message http://travel.yahoo.com.au - Yahoo! Travel - Got Itchy feet? Get inspired! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message