1. DB/DBM problems
I'm trying to implement DB or DBM auth on a RedHat 6.1 server, but am
experiencing problems. I'm new to DB and DBM, so I don't know the best
tools to be using for either, or both.
According to all the docs I've read (apacheweek.com and several books), I
can use the Perl script dbmmanage for both DB and DBM database
creation...though I find that strange. At any rate, I have been trying to
make a DBM database using dbmmanage with the following syntax:
dbmmanage dbpasswds adduser test
After entering the password and confirming, I receive:
User test added with password encrypted to 0IBVdAYeag0BA
Then I run dbmmanage dbpasswds view and get:
test:0IBVdAYeag0BA
All seems well, but the documentation I've read implies that the dbm file
created will/might have a .pag or .dir extension...which it doesn't.
The domain has a docroot of:
/www/home/zencrafters.net/www/htdocs
and the directory I am attempting to protect is:
/www/home/zencrafters.net/www/htdocs/members
My .htaccess file is configured as follows:
AuthDBMUserfile /www/home/zencrafters.net/www/dbpasswd
AuthDBMAuthoritative On
AuthName "Members Only"
AuthType basic
require valid-user
<Files .htaccess>
deny from all
</Files>
When I browse to the protected directory, my authentication attempts fail,
and the errors Apache reports back are as follows:
[Wed Jun 7 12:28:48 2000] [error] DBM user test not found:
/www/home/zencrafters.net/www/htdocs//member
[Wed Jun 7 12:28:50 2000] [error] (2)No such file or directory: could not
open dbm auth file: /www/home/zencrafters.net/www/dbpasswds
I've tried adding the .pag and .dir extensions to the file with no change.
The docs indicated that my .htaccess should call the dbm file without the
extensions, and I have done so. Here is the file is owned by the web user
and has 644 permissions.
Any assistance would be greatly appreciated. If you could also indicate
what should be used for DB, as opposed for DBM, I would like to know that as
well.
-CT
--------== Posted Anonymously via Newsfeeds.Com ==-------
Featuring the worlds only Anonymous Usenet Server
-----------== http://www.newsfeeds.com ==----------
2. Hooking up a VT220...
3. DBM vs DB
4. mtalk0.4 (IP intercom) missing code?
5. DBM files with *.db and *.id, what the f**k?
6. SMP with 2.1.8x-Kernels
7. how to put crypt string into db or dbm for apache?
8. 3ware driver update for 2.5.6-pre2 (new DMA mapping)
9. db and dbm format
10. +!+how to install DBM in Solaris , Is there a need to install DBM in solaris
11. No such file or directory: could not open dbm auth file: /etc/apache-ssl/lspasswd.dbm
12. ++how to install DBM in Solaris , Is there a need to install DBM in solaris
13. Apache w/ DBM vs. Apache w/o DBM ?