{"id":41,"date":"2010-02-14T19:44:13","date_gmt":"2010-02-14T17:44:13","guid":{"rendered":"http:\/\/new.cs-ware.de\/?p=41"},"modified":"2013-05-02T17:09:04","modified_gmt":"2013-05-02T15:09:04","slug":"mod_auth_pgsql-support-for-salted-password-hashes","status":"publish","type":"post","link":"https:\/\/www.cs-ware.de\/blog\/archives\/41","title":{"rendered":"mod_auth_pgsql: Support for salted md5 password hashes"},"content":{"rendered":"<p>Recently I created a patch against the Apache httpd authentication module <a href=\"http:\/\/www.giuseppetanzilli.it\/mod_auth_pgsql2\/\">mod_auth_pgsql<\/a> 2.0.3 for adding support for salted md5 password hashes. In a scenario I wanted to authenticate users against the PostgreSQL user database. However, mod_auth_pgsql only could handle crypted, md5 and base64 encoded passwords. There was no support for salted MD5 passwords (username+password concatenated) like in pg_shadow-table.<\/p>\n<p>Just apply the patch <a href=\"\/blog\/wp-content\/uploads\/2010\/02\/mod_auth_pgsql-pgsql-saltedmd5.patch\">mod_auth_pgsql-pgsql-saltedmd5.patch<\/a> and use<br \/>\n<code>Auth_PG_encrypted ON<br \/>\nAuth_PG_hash_type MD5PGSQL<\/code><br \/>\nas new configuration parameters.<\/p>\n<p><strong>Update 2013-05-01:<\/strong> Patch accepted upstream.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I created a patch against the Apache httpd authentication module mod_auth_pgsql 2.0.3 for adding support for salted md5 password hashes. In a scenario I wanted to authenticate users against the PostgreSQL user database. However, mod_auth_pgsql only could handle crypted, md5 and base64 encoded passwords. There was no support for salted MD5 passwords (username+password concatenated) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,2],"tags":[10,9],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-linux","category-patches","tag-apache-httpd","tag-postgresql"],"_links":{"self":[{"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/comments?post=41"}],"version-history":[{"count":15,"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":127,"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/posts\/41\/revisions\/127"}],"wp:attachment":[{"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/media?parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/categories?post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/tags?post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}