Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

Apache authentication against zzsys_user

ckurlinski
Posts: 9
Joined: Wed Feb 26, 2014 10:00 pm

Apache authentication against zzsys_user

Unread post by ckurlinski »

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?
Post Reply