Apache authentication against zzsys_user

Apache authentication against zzsys_user

Postby ckurlinski » Thu Feb 27, 2014 6:54 am

I am trying to setup apache to authenticate a directory on my server against the zzsys_user credentials.
I've gotten the connection to function by adding
<IfModule mod_dbd.c>
DBDriver mysql
DBDParams "host=127.0.0.1 port=3306 dbname=sample user=root pass=password"
DBDMin 1
DBDKeep 8
DBDMax 20
DBDExptime 300
</IfModule>

and

</Directory>
<Directory "C:/UwAmp/www/test">
Options -FollowSymLinks Indexes MultiViews
AuthType Basic
AuthName "subscriber"
AuthBasicProvider dbd
AuthDBDUserPWQuery "SELECT sus_login_password FROM zzsys_user WHERE sus_login_name = %s"
Require valid-user
AllowOverride None
Order allow,deny
Allow from all
</Directory>

to the httpd.conf file actually httpd_source.conf which generates the httpd.conf.

However I continually get [error] [client 192.168.0.25] user test: authentication failure for "/test/": Password Mismatch

I have found this code in formlogin.php
sus_login_password = '" . md5('nu' . $pass) . "'";

Are you modifying the password before encrypting it?

Has anyone else authenticated against zzsys_user with apache?
ckurlinski
 
Posts: 9
Joined: Thu Feb 27, 2014 6:30 am

Return to General