
mod_auth_mysql and phpass
May 19, 2008With the release of WordPress 2.5, there were some significant changes to the way passwords were stored in the database. Prior to 2.5, passwords were stored as MD5 hashes. While simple and easy, there were some security implications, so since 2.5, passwords are now salted and hashed using the phpass encryption library. At Automattic we like to keep things simple, so we use the WordPress and bbPress user system for external authentication for things such as Trac and Subversion. This allows us an effective and simple single sign on (SSO) solution for almost everything we do. Unfortunately, the existing mod_auth_mysql apache module did not have support for the new password format.
Thanks to Nikolay, we now have the best of both worlds. He has patched mod_auth_mysql to support phpass. This means you can now have plug and play authentication against your WordPress blog or bbPress forum almost anywhere you can think of. The patch allows automatic fallback to MD5 in case the user has not yet logged into WordPress and their password is still stored in the old format.
Once the new module is loaded, you will just need to replace the following line in your apache configuration file.
OLD:AuthMySQLPwEncryption md5
NEW:AuthMySQLPwEncryption phpass
You can download the patched version here. It has been tested with Apache 2.2.3 and MySQL 4.1/5.0
[...] mod_auth_mysql and phpass [...]
2 words: bad ass.
I wrote the patch that added phpass to WordPress and this is pretty cool news. Always good to see more support.
[...] mod_auth_mysql and phpass, a new patch that allows Apache authentication (for Subversion, Trac, enterprise integration systems) to work with the new WordPress secure password storage. Powered by Bookmarkify™ Tags: word press [...]
Nice, I was just thinking about how to integrate Trac/SVN/BBpress/WordPress on one site. Having a single sign on will be a killer feature for this setup.
Do you have a short howto or description of how this is configured for the different components?
Is there also a patch for Nginx, or will it use the Apache mod_auth_mysql module?
Damn - another thing to play with instead of doing the work I’m supposed to be doing!
[...] Patch: Barry Abramson writes about mod_auth_mysql and phpass, a new patch for Apache authentication which works with the new WordPress secure password storage [...]
[...] Patch: Barry Abramson writes about mod_auth_mysql and phpass, a new patch for Apache authentication which works with the new WordPress secure password storage [...]
[...] mod_auth_mysql and phpass Keep things simple with WordPress and bbPress by using a simple single sign on (SSO) solution which authenticates users against the WordPress user system. This updated mod_auth_mysql apache module has support for the new WordPress password format. [...]
interestingly!
[...] Secure Storage: Barry Abramson writes about mod_auth_mysql and phpass, a new patch for Apache authentication which works with the new WordPress secure password storage [...]
[...] so, the nice folk at Automattic (makers of fine blogging software like WordPress) have released a patched version that works with [...]
[...] mod_auth_mysql and phpass « Barry on WordPress [...]
This is awesome indeed — how about a Win32 build?