Repository navigation
Closed
Description
Trying to bootstrap an MIT KDC based on mit-krb5-1.14.6, one sees the following behavior:
[root@krbtest ~]# kdb5_util create
Loading random data
Initializing database '/var/krb5kdc/principal' for realm 'LOCAL',
master key name 'K/M@LOCAL'
You will be prompted for the database Master Password.
It is important that you NOT FORGET this password.
Enter KDC database master key:
Re-enter KDC database master key to verify:
kdb5_util: Unable to load requested database module 'db2': plugin symbol 'kdb_function_table' not found while creating database '/var/krb5kdc/principal'
[root@krbtest ~]#
Looking further, we see from truss (in relevant part):
93041: ioctl(3, TCSETS, 0xFFFFBF7FFFDFF900) = 0
93041: sigaction(SIGINT, 0xFFFFBF7FFFDFF7E0, 0x00000000) = 0
93041: close(3) = 0
93041: time() = 1516974864
93041: stat("/etc/krb5.conf", 0xFFFFBF7FFFDFF670) = 0
93041: time() = 1516974864
93041: time() = 1516974864
93041: stat("/opt/local/lib/krb5/plugins/kdb/db2", 0xFFFFBF7FFFDFF770) Err#2 ENOENT
93041: open("/usr/lib/locale/en_US.UTF-8/LC_MESSAGES/SUNW_OST_OSLIB.mo", O_RDONLY) Err#2 ENOENT
93041: stat("/opt/local/lib/krb5/plugins/kdb/db2.so", 0xFFFFBF7FFFDFF770) Err#2 ENOENT
93041: fstat(2, 0xFFFFBF7FFFDFE520) = 0
kdb5_util93041: write(2, " k d b 5 _ u t i l", 9) = 9
: 93041: write(2, " : ", 2) = 2
Unable to load requested database module 'db2': plugin symbol 'kdb_function_table' not found93041: write(2, " U n a b l e t o l o".., 92) = 92
93041: write(2, " ", 1) = 1
while creating database '93041: write(2, " w h i l e c r e a t i".., 25) = 25
/var/krb5kdc/principal93041: write(2, " / v a r / k r b 5 k d c".., 22) = 22
And looking at the directory called out there, we see
[root@krbtest ~]# ls /opt/local/lib/krb5/plugins/kdb/
libdb2.la libdb2.so
[root@krbtest ~]#
Creating a symlink allows the operation to complete successfully:
[root@krbtest ~]# ln -s /opt/local/lib/krb5/plugins/kdb/libdb2.so /opt/local/lib/krb5/plugins/kdb/db2.so
[root@krbtest ~]# kdb5_util create
Loading random data
Initializing database '/var/krb5kdc/principal' for realm 'LOCAL',
master key name 'K/M@LOCAL'
You will be prompted for the database Master Password.
It is important that you NOT FORGET this password.
Enter KDC database master key:
Re-enter KDC database master key to verify:
[root@krbtest ~]#
Metadata
Metadata
Assignees
Labels
No labels
Activity
coyhile commentedon Jan 26, 2018
The container where I was testing is
[email protected]. I'll see if I can repro with the previous LTS image. ETA: same behavior with[email protected]coyhile commentedon Jan 26, 2018
I built this outside the pkgsrc framework by hand, and I do not see the behavior there. In fact, the output of the default generated Makefile from configure yields
lib/krb5/plugins/kdb/db2.so.Is it this that causes the problems here?
oniguruma: update to 6.7.1.
mamash commentedon Feb 1, 2018
Not just that single patch, but the entire patch set that injects support for pkgsrc libtool, likely. That's something that's usually desirable, because a central sanctioned libtool helps avoid all kinds of peculiar problems that different upstreams may suffer from. I'll investigate.
Updated time/p5-DateTime to 1.4800
Update to 1.706
Update to 3.2.1
Update to 0.11.0
sjorge commentedon Sep 23, 2018
I also hit this bug while trying to setup a quick test kdc
lang/pear: update to 1.10.6
Update py-itsdangerous to 1.1.0.
jo: Update to 1.2
libidn2: Update to 2.3.0
ruby-memoist: update to 0.16.2.
138 remaining items
detox: update to 3.0.1.
p5-XML-Parser: update to 2.48.
security/ruby-metasploit-model: update to 5.0.5
security/ruby-rex-text: update to 0.2.62
net/xfr: update to 0.9.12
www/ruby-doorkeeper-i18n: update to 5.2.9
py-ast-serialize: update to 0.8.0.
py-ast-serialize: update to 0.8.0.
textproc/treemd: update to 0.7.0
devel/gitpane: update to 0.16.0
misc/rozi: update to 0.0.s26
Update to 1.31
misc/rozi: update to 0.0.s26
Update to 1.31
devel/libctl: Update to 4.7.1