DBM User Authentication
I set apache with directory authentication. But whenever I access the folder which provide access authentication, the window which ask for username and password indeed pop-up [seems ready to accept authentication] but whenever I login using the accounts which I previously made / allowed
to access my private directory It just won't make the user pass.
I invoked the following to see if indeed the users were made and it provides:
# /usr/sbin/dbmmanage /etc/httpd/dbmpasswd view
Also, here's my http.conf entries
AuthName "Restricted Area"
require valid-user user1 user2
I provided a chmod 640 access permission and chown root.www on the /etc/httpd/dbmpasswd file. But nothing seem to give good news.
Httpd restart produce no error. HTTP access.log and error.log likewise did not give any errors.
It seems that the entries "AuthDBMUserFile /etc/httpd/dbmpasswd" was not giving any effect even if I restarted the http service.
I'm stuck for so many weeks now figuring-out the problem. Hope you expert out there can contribute a solution to my BIG PROBLEM.
A million 10ks in advance.
alright I'm having a similar issue with this freakin DBM package. Hopefully we can help each other out and get things working.
Can you post your ./configure parameters?
./configure --prefix=/usr/local/apache2 --with-mpm=prefork --enable-so --enable-access --enable-auth-dbm --enable-ssl --with-ssl=/usr/local/openssl/ --disable-charset-lite --disable-include --disable-env --disable-setenvif --disable-status --disable-autoindex --disable-asis --disable-cgi --disable-negotiation --disable-imap --disable-actions --disable-userdir --disable-alias
Try the above in red and see if you have the same problem.
I'm trying to do access per .htaccess file. I have done this with the plain text files but now I want to use the database.
my httpd.conf is:
and then my .htaccess file is:
AuthName "Private Area!"
I see you have AuthDBMType GDBM are you sure this is the type of database you compiled in? As you can see in my ./configure I didn't pick one. I just want the default but tried all the different types located here:
The errors I get in error_log
[Mon Sep 04 18:36:37 2006] [error] [client 10.1.10.86] (2)No such file or directory: could not open dbm (type default) auth
file: /usr/local/apache2/conf/thesheff17/thesheff17,<FILE came from>
The problem is I tried all the different ones inside that apache link?....have you ever had dbm working correctly?