Not sure about AuthDBM, but the regular auth_mod like the password file to be in your path. Try adding /etc/httpd/ into yuor path, and see what happens.
Hi all,
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
user1:R3b5cytY6RH0o
ruser2:tLmz9AB0i5Us6
Also, here's my http.conf entries
<Directory /var/www/html/private/>
Options None
AllowOverride AuthConfig
AuthName "Restricted Area"
AuthType Basic
AuthDBMType GDBM
AuthDBMUserFile /etc/httpd/dbmpasswd
require valid-user user1 user2
</Directory>
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.
Not sure about AuthDBM, but the regular auth_mod like the password file to be in your path. Try adding /etc/httpd/ into yuor path, and see what happens.
[quote author=Master Copy link=board=1;threadid=8102;start=0#msg73684 date=1068534556]
Not sure about AuthDBM, but the regular auth_mod like the password file to be in your path. Try adding /etc/httpd/ into yuor path, and see what happens.
[/quote]
I'm sorry for my ignorance. But what do you mean by "try adding /etc/httpd/ into your path"?
What I know is that AuthDBMUserFile /etc/httpd/dbmpasswd directive sets the path to the password file created under dbmpasswd. But whenever the restricted file / directory is being access it just don't provide the proper authentication.
Under root, add /etc/httpd/ in your .bashrc in the PATH= section. Relogin with a terminal as root or su, type 'echo $PATH' to make sure that directory is in there now. Restart Apache so it sees that directory.
[quote author=Master Copy link=board=1;threadid=8102;start=0#msg73703 date=1068586032]
Under root, add /etc/httpd/ in your .bashrc in the PATH= section. Relogin with a terminal as root or su, type 'echo $PATH' to make sure that directory is in there now. Restart Apache so it sees that directory.
[/quote]
I fixed the error : )
I modify the entry:
AuthDBMType GDBM
to:
AuthDBMType DB
Now, users can authenticate.
Thanks ALOT!
Bookmarks