Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 52510 invoked from network); 24 Aug 2006 13:00:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Aug 2006 13:00:16 -0000 Received: (qmail 29538 invoked by uid 500); 24 Aug 2006 13:00:06 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 29523 invoked by uid 500); 24 Aug 2006 13:00:06 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 29512 invoked by uid 99); 24 Aug 2006 13:00:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Aug 2006 06:00:06 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [213.92.5.108] (HELO fe-4c.inet.it) (213.92.5.108) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Aug 2006 06:00:05 -0700 Received: from ::ffff:213.92.81.232 ([::ffff:213.92.81.232]) by fe-4c.inet.it via I-SMTP-5.4.4-546 id ::ffff:213.92.81.232+uKVS7rw0uxy; Thu, 24 Aug 2006 14:59:43 +0200 From: "Luca Meneghesso" To: Date: Thu, 24 Aug 2006 14:59:44 +0200 Message-ID: <002101c6c77d$2be11ad0$46c86464@mtsgroup.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 In-Reply-To: <004901c6c6d9$3f5202e0$46c86464@mtsgroup.org> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] Digest authentication with mod_authn_dbd + MySQL driver X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Ok.=20 After some research I found that htdigest calculates the password digest based on the string username:realm:password, now I know how to programmatically populate the password field in the users table with = MySQL's md5() function. Luca -----Original Message----- From: Luca Meneghesso [mailto:meneghesso_news@mtsspa.it]=20 Sent: mercoled=EC 23 agosto 2006 19.26 To: users@httpd.apache.org Subject: RE: [users@httpd] Digest authentication with mod_authn_dbd + = MySQL driver Nick, > You're trying to do Digest authentication with a Basic authn = configuration > by just switching AuthType. You need an AuthDBDUserRealmQuery, and > you'll need to populate your database with md5 digests. See the = digest > authn documentation. It works now. I didn't realize that my query must include also the = realm. I populated the password field on my database by copying the md5 digests generated with the htdigest tool. Is there any other way to do it? I tried with that the MD5() function in MySQL but it does is not = generate the same digests as htdigest. > (one advantage of DBD is you can use the same table for both types > of authn. Just use different columns for Basic and Digest entries). That's a feature I will certainly use! >> --=20 >> Nick Kew Thank you for your help. Luca Meneghesso --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server = Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org