From owner-freebsd-questions Thu Aug 8 20:23:23 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 1742A37B400 for ; Thu, 8 Aug 2002 20:23:21 -0700 (PDT) Received: from boris.st.hmc.edu (boris.ST.HMC.Edu [134.173.63.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 802D843E65 for ; Thu, 8 Aug 2002 20:23:20 -0700 (PDT) (envelope-from jeff@unixconsults.com) Received: from boris.st.hmc.edu (localhost [127.0.0.1]) by boris.st.hmc.edu (8.12.3/8.12.3) with ESMTP id g793NJue001087; Thu, 8 Aug 2002 20:23:19 -0700 (PDT) Received: from localhost (jeff@localhost) by boris.st.hmc.edu (8.12.3/8.12.3/Submit) with ESMTP id g793NJlx001084; Thu, 8 Aug 2002 20:23:19 -0700 (PDT) (envelope-from jeff@unixconsults.com) X-Authentication-Warning: boris.st.hmc.edu: jeff owned process doing -bs Date: Thu, 8 Aug 2002 20:23:19 -0700 (PDT) From: Jeff Jirsa X-X-Sender: jeff@boris.st.hmc.edu To: Brian McCann Cc: freebsd-questions@FreeBSD.ORG Subject: Re: htpasswd / Apache In-Reply-To: <000201c23f50$73c04830$2e00a8c0@dogbert> Message-ID: <20020808201940.O1065-100000@boris.st.hmc.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-milter on boris.st.hmc.edu 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 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