From owner-freebsd-questions@FreeBSD.ORG Sat Mar 1 19:13:35 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2CECB24E5 for ; Sat, 1 Mar 2014 19:13:35 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DA5C41F92 for ; Sat, 1 Mar 2014 19:13:34 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WJpLg-0003mV-Gb for freebsd-questions@freebsd.org; Sat, 01 Mar 2014 20:13:24 +0100 Received: from pool-173-79-82-127.washdc.fios.verizon.net ([173.79.82.127]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Mar 2014 20:13:24 +0100 Received: from nightrecon by pool-173-79-82-127.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Mar 2014 20:13:24 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Subject: Re: heimdal and BDB troubles after upgrading to 10 Date: Sat, 01 Mar 2014 14:13:04 -0500 Lines: 35 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-79-82-127.washdc.fios.verizon.net User-Agent: KNode/4.12.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: nightrecon@hotmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Mar 2014 19:13:35 -0000 Matt Mullins wrote: > It looks like I've managed to break my KDC by upgrading to 10 -- all I can > seem to get the KDC to do is give me the following error: > > 2014-02-28T22:46:02 Failed to open database: dbopen (/var/heimdal/foo): > Inappropriate file type or format > > I've tried building db5 (replacing db46 which is also still installed on > my machine -- apparently deprecated in the meantime), and rebuilding > heimdal against it, all to no avail. > > db_verify-5 reports that the database file is in good health. gdb tells > me that for some reason, heimdal is trying to use the libc's dbopen() > instead of db5's -- is there a way I can coerce heimdal into using the > right library? > > My krb5.conf has: > [kdc] > database = { > dbname = /var/heimdal/foo > realm = LOCAL.MMLX.US > mkey_file = /var/heimdal/foo.mkey > log_file = /var/heimdal/bar > acl_file = /var/heimdal/kadmind.acl > } > enable_kereberos4 = false > enable_http = false Have you tried the WITH_BDB_VER=5 or WITH_BDB_VER=6 in make.conf as per UPDATING entry 20131216: before building? -Mike