From owner-freebsd-i386@FreeBSD.ORG Mon Aug 8 17:40:16 2011 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21F621065720 for ; Mon, 8 Aug 2011 17:40:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 86AC38FC12 for ; Mon, 8 Aug 2011 17:40:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p78HeBps046866 for ; Mon, 8 Aug 2011 17:40:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p78HeBNQ046865; Mon, 8 Aug 2011 17:40:11 GMT (envelope-from gnats) Resent-Date: Mon, 8 Aug 2011 17:40:11 GMT Resent-Message-Id: <201108081740.p78HeBNQ046865@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jo Rhett Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F7021065679 for ; Mon, 8 Aug 2011 17:30:48 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 5F3778FC0A for ; Mon, 8 Aug 2011 17:30:48 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p78HUmvU095915 for ; Mon, 8 Aug 2011 17:30:48 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p78HUmRw095914; Mon, 8 Aug 2011 17:30:48 GMT (envelope-from nobody) Message-Id: <201108081730.p78HUmRw095914@red.freebsd.org> Date: Mon, 8 Aug 2011 17:30:48 GMT From: Jo Rhett To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: i386/159608: apache WITH_BDB_BASE settings described in UPDATING do not work X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2011 17:40:16 -0000 >Number: 159608 >Category: i386 >Synopsis: apache WITH_BDB_BASE settings described in UPDATING do not work >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 08 17:40:11 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Jo Rhett >Release: 8.2 >Organization: >Environment: FreeBSD triceratops.netconsonance.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: There are settings described in ports UPDATING file and implemented in Makefile.modules to build apache with the base bdb 1.85 libraries. Using these settings produces an apache which cannot authenticate against bdb 1.85 files. dbmmanage /path/to/file view/adduser/delete/etc works fine file /path/to/file /path/to/file: Berkeley DB 1.85 (Hash, version 2, native byte-order) Accessing from the web server always returns a 500 error with the following in the error log: (2)No such file or directory: could not open dbm (type default) auth file: /path/to/passwd.dat I've recompiled apr and apache with a variety of different options, and nothing works. apr without any databases doesn't work. apr with BDB doesn't work, etc. My options for apache have remained the same: APACHE_PORT=www/apache22 WITH_DBM=bdb WITH_BDB_BASE=yes Running a ktrace shows that even though it is built this way, it continues to search for a DBM file. # kdump |grep /passwd 724 httpd NAMI "/path/to/passwd.dat.dir" >How-To-Repeat: /etc/make.conf: APACHE_PORT=www/apache22 WITH_DBM=bdb WITH_BDB_BASE=yes cd /usr/ports/www/apache22 make make install Create a DB 1.85 authentication file like so: jrhett:$1$JJueifadJ$jjp1FrHQ1OLnGwpYc3Egr1:admin file /path/to/passwd.dat /path/to/passwd.dat: Berkeley DB 1.85 (Hash, version 2, native byte-order) Edit the httpd.conf like so: AuthBasicProvider dbm AuthDBMType default AuthDBMUserFile /path/to/passwd.dat AuthDBMGroupFile /pathto/passwd.dat >Fix: No clue. >Release-Note: >Audit-Trail: >Unformatted: