Mailing List Archive

auth_db Invalid argument: could not open db auth file
hi, i keep getting (22)Invalid argument: could not open db auth file: /usr/local/apache_test/htdocs/test/testdb
when i try to access a dir protected with auth_db
I am running
rh7.2
apache_1.3.23
Berkeley DB 2.7.7

this is my .htaccess
AuthType Basic
AuthName "Members Area"
AuthDBUserFile /usr/local/apache_test/htdocs/test/testdb
AuthDBGroupFile /dev/null
require valid-user

what is wrong ?
thx -mok2



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: auth_db Invalid argument: could not open db auth file [ In reply to ]
On Wed, 27 Feb 2002, mok2 wrote:

> hi, i keep getting (22)Invalid argument: could not open db auth file: /usr/local/apache_test/htdocs/test/testdb
> when i try to access a dir protected with auth_db
> I am running
> rh7.2
> apache_1.3.23
> Berkeley DB 2.7.7

What are you using to create the db file? Likely, it is creating it in a
format that is not the same as the one understood by auth_db.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: auth_db Invalid argument: could not open db auth file [ In reply to ]
On Wed, 27 Feb 2002, mok2 wrote:

> I am using dbmmanage from the bin dir within apache.
> i installed apache with disbable mod and shared auth_dbm hoping that would
> force dbmmanage to cread db files but i dont know how to verify whether the file is the correct
> format

Look inside. It's a simple perl script. Just make sure that the DB type
that apache has linked in is the first one loaded in dbmmanage.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: auth_db Invalid argument: could not open db auth file [ In reply to ]
I am using dbmmanage from the bin dir within apache.
i installed apache with disbable mod and shared auth_dbm hoping that would
force dbmmanage to cread db files but i dont know how to verify whether the file is the correct
format


On Wed, 27 Feb 2002, Joshua Slive wrote:

>
>
> On Wed, 27 Feb 2002, mok2 wrote:
>
> > hi, i keep getting (22)Invalid argument: could not open db auth file: /usr/local/apache_test/htdocs/test/testdb
> > when i try to access a dir protected with auth_db
> > I am running
> > rh7.2
> > apache_1.3.23
> > Berkeley DB 2.7.7
>
> What are you using to create the db file? Likely, it is creating it in a
> format that is not the same as the one understood by auth_db.
>
> Joshua.
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: auth_db Invalid argument: could not open db auth file [ In reply to ]
Is this what your talking about ?
line 69 of dbmmanage which is also set in src/support/dbmmanage in my build dir

BEGIN { @AnyDBM_File::ISA = qw(DB_File NDBM_File GDBM_File SDBM_File) }

-mok2

On Wed, 27 Feb 2002, Joshua Slive wrote:

>
> On Wed, 27 Feb 2002, mok2 wrote:
>
> > I am using dbmmanage from the bin dir within apache.
> > i installed apache with disbable mod and shared auth_dbm hoping that would
> > force dbmmanage to cread db files but i dont know how to verify whether the file is the correct
> > format
>
> Look inside. It's a simple perl script. Just make sure that the DB type
> that apache has linked in is the first one loaded in dbmmanage.
>
> Joshua.
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org