httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Meneghesso" <meneghesso_n...@mtsspa.it>
Subject RE: [users@httpd] Digest authentication with mod_authn_dbd + MySQL driver
Date Thu, 24 Aug 2006 12:59:44 GMT
Ok. 

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] 
Sent: mercoledì 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!

>> -- 
>> Nick Kew

Thank you for your help.

Luca Meneghesso


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message