From owner-freebsd-ports@FreeBSD.ORG Sun Feb 17 13:38:24 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 026E416A419; Sun, 17 Feb 2008 13:38:24 +0000 (UTC) (envelope-from djp@polands.org) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.123]) by mx1.freebsd.org (Postfix) with ESMTP id A018B13C465; Sun, 17 Feb 2008 13:38:23 +0000 (UTC) (envelope-from djp@polands.org) Received: from corinth.polands.org ([75.87.219.217]) by hrndva-omta02.mail.rr.com with ESMTP id <20080217132318.QQDR27223.hrndva-omta02.mail.rr.com@corinth.polands.org>; Sun, 17 Feb 2008 13:23:18 +0000 Received: from ammon.polands.org (ammon.polands.org [172.16.1.7]) by corinth.polands.org (8.13.8/8.13.8) with ESMTP id m1HDNHec075150; Sun, 17 Feb 2008 07:23:17 -0600 (CST) (envelope-from djp@polands.org) Received: from ammon.polands.org (localhost [127.0.0.1]) by ammon.polands.org (8.13.8/8.13.8) with ESMTP id m1HDNHhN072533; Sun, 17 Feb 2008 07:23:17 -0600 (CST) (envelope-from djp@ammon.polands.org) Received: (from djp@localhost) by ammon.polands.org (8.13.8/8.13.8/Submit) id m1HDNHbi072532; Sun, 17 Feb 2008 07:23:17 -0600 (CST) (envelope-from djp) Date: Sun, 17 Feb 2008 07:23:17 -0600 From: Doug Poland To: questions@freebsd.org Message-ID: <20080217132317.GC72400@polands.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 X-Virus-Scanned: ClamAV 0.88.4/5840/Sat Feb 16 17:35:57 2008 on corinth.polands.org X-Virus-Status: Clean Cc: freebsd-ports@freebsd.org Subject: apache 2.2.8 authdbm woes X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Feb 2008 13:38:24 -0000 Hello, For the past few days, I've been migrating a bunch of apache-1.3.41 vhosts to apache-2.2.8 (on the same machine, 6.3-RELEASE i386). Many of directories are protected with AuthType directives and I want to reuse the existing .dat files. After working successfully for more than a day with the original .dat files, apache-2.2.8 suddenly decides that format is not supported. Here's what the error log says: This function has not been implemented on this platform: could not open dbm (type DB) auth file: /usr/local/etc/apache22/auth/admin-passwords.dat I'm fairly certain that the beginning of the error messages coincided with the first modifications I made to the .dat files after copying them from /usr/local/etc/apache to /usr/local/etc/apache22. The syntax I used to modify the files were: dbmmanage admin-groups.dat add newAdminUser newAdminGroup dbmmanage admin-passwords.dat adduser newAdminUser I compiled apache-2.2.8 with the following options: make -DWITH_BDB -DWITH_BDB_BASE And have the following directives in the conf file: AuthType Basic AuthName "Authorized Users" AuthBasicProvider dbm AuthDBMType DB AuthDBMUserFile etc/apache22/auth/admin-passwords.dat AuthDBMGroupFile etc/apache22/auth/admin-groups.dat require group newAdminGroup In the apache-1.3.41 httpd.conf file, I used: AuthName "Authorized Users" AuthType Basic AuthDBUserFile /usr/local/etc/apache/admin-passwords.dat AuthDBGroupFile /usr/local/etc/apache/admin-groups.dat require group newAdminGroup This change in apache's behavior is very strange indeed. I tried copying the original .dat files and restarting apache, but to no avail. I also must admit that I'm a little confused between AuthDBM/AuthDB and and all the DBM/BDB options in FreeBSD's Make infrastructure Many thanks for your consideration and assistance. -- Regards, Doug