I am running RedHat 5.2 and Apache 1.3.6 (compiled from source). I am
trying to setup DBM Authentication using the 'dbmmanage' program but it
doesn't seem to work. Using the 'htpasswd' program everything works
great.
Basically, I can create my password database fine using dbmmanage (I
used /usr/local/apache/htdocs/.htpasswd). And I then create the
.htaccess file in the directory I want to restrict. And yes I'm aware of
"AuthUserFile" vs. "AuthDBMUserFile".
Then when I try to access the page it correctly asks for my password.
The problem is that I keep getting denied even though I HAVE entered the
correct password! The apache error_log shows: (I removed my ipadr)
[Sat Jun 19 09:04:57 1999] [error] [client xx.xx.xx.xx] (2)No such file
or directory: could not open dbm auth file:
/usr/local/apache/htdocs/.htpasswd
[Sat Jun 19 09:04:57 1999] [error] [client xx.xx.xx.xx] DBM user brad
not found: /usr/local/apache/htdocs/myfiles
The 'user brad not found' is bullshit because I can do 'dbmmanage
/usr/local/apache/htdocs/.htpasswd view' and it lists all of my accounts
including 'brad'.
For some reason apache is having problems opening the .htpasswd file
when it's created using 'dbmmanage'. If I create it using 'htpasswd' and
change .htacess to use "AuthUserFile" then everything works great. Why
doesn't it work using "AuthDBMUserFile" and 'dbmmanage'??? Apache is
configured properly to load dbm_auth and db_auth (and a few others).
The only thing I can think of is the 'dbmmanage' program is not the
correct version for RedHat 5.2. Is there such a thing as a 5.2 vs 6.0
version of this script?
Any help would be greatly appreciated. Linux is once again testing my
patience. And it's wearing damn thin!!!!! ;-)
Brad.