Date: Fri, 09 Aug 2002 00:00:26 -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: <000601c23f59$4bbd94b0$2e00a8c0@dogbert> In-Reply-To: <20020808204306.L1167-100000@boris.st.hmc.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Ok...I'll give it a shot. When I use the crypt statement in PHP though, what do I use as the salt in order to generate a PW that will work? The username? --Brian -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of Jeff Jirsa Sent: Thursday, August 08, 2002 11:53 PM To: Brian McCann Cc: freebsd-questions@FreeBSD.ORG Subject: RE: htpasswd / Apache On Thu, 8 Aug 2002, Brian McCann wrote: > 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. > This link has always worked well for me ... http://www.cgi101.com/class/password/mod_auth_mysql.html The directive to notice is : Auth_MySQL_Encryption_Types Crypt_DES Everything else should be pretty much self explainatory ... MD5 doesn't seem to be an option. Adding them is trivial ... but just in case ... once connected to the db, issue a command similar to: INSERT INTO http_auth (username,passwd,groups) VALUES("username","cryptedpass","default"); - Jeff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message 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?000601c23f59$4bbd94b0$2e00a8c0>