From owner-freebsd-questions Thu Aug 8 20:29: 1 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2903037B400 for ; Thu, 8 Aug 2002 20:28:57 -0700 (PDT) Received: from vms4.rit.edu (vms4.isc.rit.edu [129.21.3.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB13D43E4A for ; Thu, 8 Aug 2002 20:28:56 -0700 (PDT) (envelope-from bjm1287@ritvax.isc.rit.edu) Received: from dogbert ([129.21.131.177]) by ritvax.isc.rit.edu (PMDF V5.2-32 #40294) with ESMTPA id <01KL2MXK46SCM8DJT3@ritvax.isc.rit.edu> for freebsd-questions@FreeBSD.ORG; Thu, 8 Aug 2002 23:28:36 EDT Date: Thu, 08 Aug 2002 23:28:42 -0400 From: Brian McCann Subject: RE: htpasswd / Apache In-reply-to: <20020808201940.O1065-100000@boris.st.hmc.edu> To: 'Jeff Jirsa' , 'Brian McCann' Cc: freebsd-questions@FreeBSD.ORG Message-id: <000101c23f54$dcaea130$2e00a8c0@dogbert> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook, Build 10.0.2616 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal 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 I've tried it...but I could NEVER get it to work right with encrypted passwords. This was actually what I tried first...but since I could only get it to work with clear text passwords, I gave up on it. My problem was no matter where I grabbed the PW from to put into the db (using htpasswd or crypt), I could never authenticate right. Do you have any example code or a site I could look at to help me out for how to add people into the DB using encrypted PWs? Preferably MD5. Thanks, --Brian -----Original Message----- From: Jeff Jirsa [mailto:jeff@unixconsults.com] Sent: Thursday, August 08, 2002 11:23 PM To: Brian McCann Cc: freebsd-questions@FreeBSD.ORG Subject: Re: htpasswd / Apache On Thu, 8 Aug 2002, Brian McCann wrote: > Hi all. I have a question for everyone using Apache out there. I've > spent a few days trying to write a set of PHP/Bash scripts that will > edit the htpasswd file and htgroup files for Apache, and it's getting > old fast. I'm hitting quite a few road blocks, and getting blown away > in awk and bash code. Does anyone know of any ports or something that > would allow me to add, delete, change PWs, and edit group membership > via a web interface? > Not quite what you asked for, but perhaps you might consider using mod_auth_mysql ... Use php's existing mysql calls (you MIGHT have to recompile php to include mysql support) and modify it all in the php code. It's safer than having a bunch of calls to shell scripts from within the php, and it's relatively well documented. The basic auth table is simply a username, password, and group. You'll be able to auth based on the username, or the group, and you'll be able to modify them completely on the fly. - Jeff -- Jeff Jirsa jeff@unixconsults.com -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message