Date: Thu, 08 Aug 2002 23:28:42 -0400 From: Brian McCann <bjm1287@ritvax.isc.rit.edu> To: 'Jeff Jirsa' <jeff@unixconsults.com>, 'Brian McCann' <bjm1287@ritvax.isc.rit.edu> Cc: freebsd-questions@FreeBSD.ORG Subject: RE: htpasswd / Apache Message-ID: <000101c23f54$dcaea130$2e00a8c0@dogbert> In-Reply-To: <20020808201940.O1065-100000@boris.st.hmc.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000101c23f54$dcaea130$2e00a8c0>