This is a discussion on mod_auth_dbm doesn't work: "Authentication Required" without end... within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello all. I am using httpd 2.0.48 on Mac OS X.3 (FreeBSD Unix). Maybe someone can help: ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello all.
I am using httpd 2.0.48 on Mac OS X.3 (FreeBSD Unix). Maybe someone can help: I want to restrict access to a <Location ...> with username and password and thought of using mod_auth_dbm since the tree is very deep and I read that Apache does the authentication internally on every page inside this tree. So auth-dbm could be faster. I have only up to ten users anyway, maybe later 20 or 30. Anyway, Apache seems to fail with my configuration, everytime I access this location my browsers tells me to athenticate again and again. Commenting out "require valid-user" fix this problem. Here I post my httpd.conf, the error log and my configuration settings, maybe someone can tell me what is wrong here. Maybe I have alternatives to mod_auth_dbm except a plain text pw file? Many thanks for help! Robert Modules Compiled In: BUILTIN_LIBS=' modules/aaa/mod_access.la modules/aaa/mod_auth.la modules/aaa/mod_auth_dbm.la modules/filters/mod_include.la modules/filters/mod_deflate.la modules/loggers/mod_log_config.la modules/metadata/mod_env.la modules/metadata/mod_setenvif.la modules/http/mod_http.la modules/http/mod_mime.la modules/dav/main/mod_dav.la modules/generators/mod_status.la modules/generators/mod_autoindex.la modules/generators/mod_asis.la modules/generators/mod_cgi.la modules/dav/fs/mod_dav_fs.la modules/mappers/mod_negotiation.la modules/mappers/mod_dir.la modules/mappers/mod_imap.la modules/mappers/mod_actions.la modules/mappers/mod_userdir.la modules/mappers/mod_alias.la modules/mappers/mod_so.la' Excerpt of my httpd.conf: <Location /svn/repos> DAV svn SVNPath /usr/local/subversion_cvs_repository SetOutputFilter DEFLATE AuthName "Subversion Repositority Realm" AuthType Basic AuthDBMUserFile /usr/local/ApacheAuthDBM/usersdbm require valid-user </Location> Permissions on /usr/local/ApacheAuthDBM/usersdbm AND the directory it is part of: rw-rw-rw- configuration: $ ./configure --prefix=/usr/local/Apache2_0_48_preforked_for_svn_ --with-mpm=prefork --enable-dav --enable-so --enable-maintainer-mode --enable-deflate --with-dbm=db4 --enable-auth-dbm --with-berkeley-db=/usr/local/BerkeleyDB4.1.25 -- The Adress my@privacy.net is against spammers and goes directly into the bin. To contact me privately reverse and use ed.xmg@xuniLtrebor |
|
|||
|
Davide Bianchi <davideyeahsure@onlyforfun.net> wrote:
> Robert <me@privacy.net> wrote: > > and thought of using mod_auth_dbm since the tree is very deep and I read > > that Apache does the authentication internally on every page inside this > > tree. So auth-dbm could be faster. > > Check your error_log file, this kind of problems usually happens when > multiple modules are trying to authenticate the user. I suppose that > you still have the standard mod_auth enabled. > Oh, I forgot: my error log: [Mon Nov 03 13:09:06 2003] [notice] caught SIGTERM, shutting down [Mon Nov 03 13:20:40 2003] [notice] Apache/2.0.48 (Unix) SVN/0.32.1 DAV/2 configured -- resuming normal operations [Mon Nov 03 13:20:45 2003] [error] [client 192.168.1.7] File does not exist: /usr/local/Apache2_0_48_preforked_for_svn_/htdocs/favicon.ico [Mon Nov 03 13:20:53 2003] [error] [client 192.168.1.7] (120022)APR does not understand this error code: could not open dbm (type default) auth file: /usr/local/ApacheAuthDBM/usersdbm [Mon Nov 03 13:20:53 2003] [error] [client 192.168.1.7] DBM user welz not found: /usr/local/Apache2_0_48_preforked_for_svn_/htdocs/svn [Mon Nov 03 13:20:58 2003] [error] [client 192.168.1.7] (120022)APR does not understand this error code: could not open dbm (type default) auth file: /usr/local/ApacheAuthDBM/usersdbm [Mon Nov 03 13:20:58 2003] [error] [client 192.168.1.7] DBM user welz not found: /usr/local/Apache2_0_48_preforked_for_svn_/htdocs/svn [Mon Nov 03 13:46:02 2003] [error] [client 192.168.1.7] (120022)APR does not understand this error code: could not open dbm (type default) auth file: /usr/local/ApacheAuthDBM/usersdbm [Mon Nov 03 13:46:02 2003] [error] [client 192.168.1.7] DBM user welz not found: /usr/local/Apache2_0_48_preforked_for_svn_/htdocs/svn [Mon Nov 03 13:46:19 2003] [error] [client 192.168.1.10] (120022)APR does not understand this error code: could not open dbm (type default) auth file: /usr/local/ApacheAuthDBM/usersdbm [Mon Nov 03 13:46:19 2003] [error] [client 192.168.1.10] DBM user not found: /usr/local/Apache2_0_48_preforked_for_svn_/htdocs/svn -- The Adress my@privacy.net is against spammers and goes directly into the bin. To contact me privately reverse and use ed.xmg@xuniLtrebor |
|
|||
|
Robert <me@privacy.net> wrote:
> and thought of using mod_auth_dbm since the tree is very deep and I read > that Apache does the authentication internally on every page inside this > tree. So auth-dbm could be faster. Check your error_log file, this kind of problems usually happens when multiple modules are trying to authenticate the user. I suppose that you still have the standard mod_auth enabled. > Maybe I have alternatives to mod_auth_dbm except a plain text pw file? What's the problem with a plain text file? > BUILTIN_LIBS=' modules/aaa/mod_auth.la Yep, you still have mod_auth. Davide |
|
|||
|
Robert <me@privacy.net> wrote:
> [Mon Nov 03 13:20:53 2003] [error] [client 192.168.1.7] (120022)APR does > not understand this error code: could not open dbm (type default) auth > file: /usr/local/ApacheAuthDBM/usersdbm Well, here you go: it can't open the authentication database. It's corrupted, doesn't have the correct permission or you haven't created it right. Davide |
|
|||
|
Davide Bianchi <davideyeahsure@onlyforfun.net> wrote:
> Robert <me@privacy.net> wrote: > > [Mon Nov 03 13:20:53 2003] [error] [client 192.168.1.7] (120022)APR does > > not understand this error code: could not open dbm (type default) auth > > file: /usr/local/ApacheAuthDBM/usersdbm > > Well, here you go: it can't open the authentication database. It's > corrupted, doesn't have the correct permission or you haven't created > it right. > > Davide the database is there: [Robert-Welzs-G4:~] welz% dbmmanage /usr/local/ApacheAuthDBM/usersdbm check welz Enter password: crypt password ok [Robert-Welzs-G4:~] welz% dbmmanage /usr/local/ApacheAuthDBM/usersdbm view welz:/BmnidihmYF/Q:develop read write for all: [Robert-Welzs-G4:~] welz% ls -al /usr/local/ApacheAuthDBM/usersdbm -rw-rw-rw- 1 welz wheel 16384 3 Nov 12:41 /usr/local/ApacheAuthDBM/usersdbm and ls -al /usr/local/ drwxrwxrwx 3 welz wheel 102 3 Nov 12:41 ApacheAuthDBM So what can I do now? -- The Adress my@privacy.net is against spammers and goes directly into the bin. To contact me privately reverse and use ed.xmg@xuniLtrebor |
|
|||
|
Robert <me@privacy.net> wrote:
> the database is there: > read write for all: > So what can I do now? Well, based on the error reported, the problem is that he can't access the file. I'd start in moving the file somewhere else. Like the configuration directory of Apache. Or check the code of mod_auth_dbm to see where that kind of error is reported and what it means. I've never used mod_auth_dbm, so that's what I can think of. Davide |