From owner-freebsd-questions Thu Aug 8 21: 0:37 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 D557737B400 for ; Thu, 8 Aug 2002 21:00:33 -0700 (PDT) Received: from vms4.rit.edu (vms4.isc.rit.edu [129.21.3.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79E3643E4A for ; Thu, 8 Aug 2002 21:00:33 -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 <01KL2O1W7GVUM8DK61@ritvax.isc.rit.edu> for freebsd-questions@FreeBSD.ORG; Fri, 9 Aug 2002 00:00:20 EDT Date: Fri, 09 Aug 2002 00:00:26 -0400 From: Brian McCann Subject: RE: htpasswd / Apache In-reply-to: <20020808204306.L1167-100000@boris.st.hmc.edu> To: 'Jeff Jirsa' , 'Brian McCann' Cc: freebsd-questions@FreeBSD.ORG Message-id: <000601c23f59$4bbd94b0$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 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