Problems with DBM and DB!

Problems with DBM and DB!

Post by Brian P. Houliha » Fri, 13 Aug 1999 04:00:00



I'm having trouble with DB and DBM.  Consider the error messages below:

Using DB:
[Thu Aug 12 14:38:04 1999] [error] [client 9.66.108.112] (22)Invalid
argument: c
ould not open db auth file:
/afs/btv/data/dieSizer/prod/apache/etc/usersdbm
[Thu Aug 12 14:38:04 1999] [error] [client 9.66.108.112] DB user ning
not found:
 /servlets/AsicLeft

Using DBM:
[Thu Aug 12 14:22:30 1999] [error] [client 9.66.108.112] (2)No such file
or dire
ctory: could not open dbm auth file:
/afs/btv/data/dieSizer/prod/apache/etc/user
sdbm
[Thu Aug 12 14:22:30 1999] [error] [client 9.66.108.112] DBM user ning
not found
: /servlets/AsicLeft

I've created the usersdbm file with dbmmanage.  Things work OK with
standard
user authentication.
Any clues?  I'm using AIX 4.3.2.

Brian

 
 
 

Problems with DBM and DB!

Post by Nick K » Sun, 15 Aug 1999 04:00:00




Quote:> I'm having trouble with DB and DBM.  Consider the error messages below:
> (no such file)

1. Decide which DBM you want to use.  On AIX, mod_auth_dbm is probably[1]
   a safe bet.
2. Use a "use" directive in htpasswd to make it use your chosen DBM.
3. Use the same DBM in your apache config.
4. Make sure your filenames and permissions are right.

[1] "Probably" here means I haven't actually done it on AIX.

--
Nick Kew

 
 
 

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 ?