I've my usernames and passwords stored in a mysql db with blowfish encrption. In php I can encrypt the password like this:
crypt($pwd, _SALT_)
where $pwd = 'userpwd'
and _SALT_ = $2a$07...
I'm looking for a way to use the user-table also in a VirtualHost with mod_auth_mysql
. I know it's possible with md5 using Auth_MySQL_Encryption_Types PHP_MD5
but I'd rather stay with blowfish.
How do I tell mysql_auth to use blowfish? And where do I enter the salt?
EDIT:
Basic problem here is that I have to use a '_' between the key words in the vhost file. So it looks like:
<Location /webdav>
AuthType Basic
AuthName "jst-development"
AuthUserFile /dev/null
AuthBasicAuthoritative Off
Auth_MySQL on
Auth_MySQL_Authoritative on
Auth_MySQL_DB user
Auth_MySQL_User user
...
instead of [taken from http://modauthmysql.sourceforge.net/CONFIGURE]
AuthMySQLDB authdata
AuthMySQLUserTable user_info
AuthMySQLGroupField user_group
to stop apache complaining about the syntax. can someone tell me why or tell me the '_'-syntax for AuthMySQLSaltField <>
//EDIT 2: Version: libapache2-mod-auth-mysql (4.3.9-13ubuntu1)
//EDIT 3: Server version: Apache/2.2.14 (Ubuntu) Exact error when using the 'official syntax' without '_': Invalid command 'AuthMySQLDB', perhaps misspelled or defined by a module not included in the server configuration