I'm trying to use the UserDB of Mantis with Apache authentification to use mantis as master-user-db.
Mantis stores my passwords in md5 currently md5(password);
I tried auth_digest but found that it's not possible because digest encodes the password like this:
md5(user:realm:password) not like mantis: md5(password)
And the other authentications use the A1, where the user is encoded in the password, too ?!?
One idea would be using plaintext passwords, but I think that's not a good idea.
I also tried mod_auth_dbm and to create the db with
dbmmanage2 -m dbfile <username> <md5passwordofmantis>
But I get: Password wrong, too.
Any idea ?!?
User-DB of Mantis useable with Apache Auth?
Moderators: Developer, Contributor
SOLVED!!!!!!!!!!!!!!
When you use the mod:
http://modauthmysql.sourceforge.net/
compile it like this:
/usr/local/apache/bin/apxs \
-c -I/usr/local/mysql/include \
-L/usr/local/mysql/lib/mysql \
-lmysqlclient -lm mod_auth_mysql.c
and copy it to apache2
cp mod_auth_mysql.so /usr/local/apache2/extmodules/
and load it like this:
LoadModule mysql_auth_module extmodules/mod_auth_mysql.so
and configure the httpd.conf file like in the readme described
http://modauthmysql.sourceforge.net/
compile it like this:
/usr/local/apache/bin/apxs \
-c -I/usr/local/mysql/include \
-L/usr/local/mysql/lib/mysql \
-lmysqlclient -lm mod_auth_mysql.c
and copy it to apache2
cp mod_auth_mysql.so /usr/local/apache2/extmodules/
and load it like this:
LoadModule mysql_auth_module extmodules/mod_auth_mysql.so
and configure the httpd.conf file like in the readme described