>Number:         2809
>Category:       mod_auth-any
>Synopsis:       AuthDBMUserFile - Apache complains 'File not found'
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Aug  7 08:00:01 PDT 1998
>Last-Modified:
>Originator:     [EMAIL PROTECTED]
>Organization:
apache
>Release:        1.3.1
>Environment:
FreeBSD 2.2.6
>Description:
Apache complains about DBM file not found. 

The problem is not Apache. It is the gdbm library (1.7.3). Apache calls dbm_open
in gdbm which in turn adds the ".pag" and ".dir" extensions to the filename 
before opening the file. The perl script (dbmmanage) included will work with the
file because Perl calls the other function in gdbm (which is gdbm_open).
>How-To-Repeat:
Compile Apache with mod_auth_dbm and try to access the file. The error_log
will show that Apache is not able to find the file.
>Fix:
1. Recompile gdbm library and comment out the ".pag" and ".dir" extensions.

2. Maybe Apache can call the actual function ( gdbm_open ) which gdbm itself
   calls.

3. Make symbolic links to your dbm file eg.
    ln -s mydbmfile mydbmfile.dir
    ln -s mydbmfile mydbmfile.pag
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[EMAIL PROTECTED]> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]



Reply via email to