Bug 214182

Summary: security/heimdal: kadmin: hdb_open: hdb_open failed initialize database /var/heimdal/heimdal
Product: Ports & Packages Reporter: Alexandre C. Guimarães <rigoletto>
Component: Individual Port(s)Assignee: Hiroki Sato <hrs>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (hrs)
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   

Description Alexandre C. Guimarães freebsd_committer freebsd_triage 2016-11-04 02:53:57 UTC
Hello,

This is my first bug report here. Please, be gentle.

I am trying to run security/heimdal (Master/Slave) in jail but it fail to initialize the database with error:

kadmin: hdb_open: hdb_open: failed initialize database /var/heimdal/heimdal


Thought, the database is there but it have .db at the end: /var/heimdal/heimdal.db

I found the bug #154711 what looks exactly thee same problem.


*****
[libdefaults]
       default_realm = MYDOMAIN.CH
[realms]
        MYDOMAIN.CH = {
               kdc = krb1.mydomain.ch
               kdc = krb2.mydomain.ch
               admin_server = krb1.mydomain.ch
   }
[domain_realm]
       .mydomain.ch = MYDOMAIN.CH
*****

*****
(...)
hostname="krb1.mydomain.ch"
kdc_enable="YES"
kadmind_enable="YES"
kdc_program="/usr/local/libexec/kdc"
kadmind5_server="/usr/local/libexec/kadmind"
kpasswdd_server="/usr/local/libexec/kpasswdd"
(...)
*****

*****
Options:

_OPTIONS_READ=heimdal-1.5.3_5
_FILE_COMPLETE_OPTIONS_LIST=BDB CRACKLIB DIGEST IPV6 KX509 LDAP PKINIT SQLITE X11
OPTIONS_FILE_SET+=BDB
OPTIONS_FILE_UNSET+=CRACKLIB
OPTIONS_FILE_SET+=DIGEST
OPTIONS_FILE_UNSET+=IPV6
OPTIONS_FILE_SET+=KX509
OPTIONS_FILE_SET+=LDAP
OPTIONS_FILE_SET+=PKINIT
OPTIONS_FILE_UNSET+=SQLITE
OPTIONS_FILE_UNSET+=X11
*****

FreeBSD 11.0-RELEASE-p1 #0 r308097: Wed Nov  2 16:36:29 BRST 2016

Thank you!
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-11-05 16:57:09 UTC
A commit references this bug:

Author: hrs
Date: Sat Nov  5 16:57:02 UTC 2016
New revision: 425399
URL: https://svnweb.freebsd.org/changeset/ports/425399

Log:
  ix Berkeley DB detection at the configuration stage.

  PR:	214182

Changes:
  head/UPDATING
  head/security/heimdal/Makefile
Comment 2 Hiroki Sato freebsd_committer freebsd_triage 2016-11-05 17:01:09 UTC
Thank you for your report.  This problem was due to wrong compilation options in the package and has been fixed in the latest version.  Please update your ports tree and rebuilt security/heimdal, or upgrade the installed package to heimdal-1.5.3_6 or later by using pkg(8) command.  Note that it may take some time until the updated binary package becomes available in pkg(8) command.
Comment 3 Alexandre C. Guimarães freebsd_committer freebsd_triage 2016-11-05 17:04:02 UTC
I will update ASAP, I am using it from Ports.

Thank you.