Bug 214182 - security/heimdal: kadmin: hdb_open: hdb_open failed initialize database /var/heimdal/heimdal
Summary: security/heimdal: kadmin: hdb_open: hdb_open failed initialize database /var/...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Hiroki Sato
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-04 02:53 UTC by Alexandre C. Guimarães
Modified: 2016-11-05 17:04 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (hrs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre C. Guimarães freebsd_committer 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 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 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 2016-11-05 17:04:02 UTC
I will update ASAP, I am using it from Ports.

Thank you.