Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error Creating Kerberos databases

466 views
Skip to first unread message

Anthony McGovern

unread,
Nov 8, 2007, 7:02:29 AM11/8/07
to kerb...@mit.edu
Good Morning
This is my first time using kerberos so I am unsure if this
is the correct place to post this problem so i apologise in advance if
this is incorrect. I am having some trouble creating the Kerberos
databases from source build 5-1.6.3, I have downloaded the source for
Kerberos from the MIT website and i have complied and ran the make
commands with no problems. However when i go to create the Kerberos
databases using the kdb5_util command i am getting an error message. I
had to make the kdb5_util file from the downloaded source files but its
not creating the databases. below is the output of what happens when i
run the utility file:

I'm running this on an ubuntu 6.06 box:


root@tssgtestbox:/home/tssgtestbox/Kerberos/krb5-1.6.3/src/kadmin/dbutil# ./kdb5_util create -r tssg.org -s
Loading random data
Initializing database '/krb5/var/krb5kdc/principal' for realm
'tssg.org',
master key name 'K/M...@tssg.org'
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:
create: Unable to load requested database module 'db2': plugin symbol
'kdb_function_table' not found while creating database
'/krb5/var/krb5kdc/principal'
root@tssgtestbox:/home/tssgtestbox/Kerberos/krb5-1.6.3/src/kadmin/dbutil#


I have checked the google machine and on the FAQ's on the MIT site but i
cant find anything about this error. Would anyone be able to help me?

Kind Regards
Anthony McGovern

Kevin Coffman

unread,
Nov 8, 2007, 8:30:44 AM11/8/07
to Anthony McGovern, kerb...@mit.edu
On 11/8/07, Anthony McGovern <amcg...@tssg.org> wrote:
>
> root@tssgtestbox:/home/tssgtestbox/Kerberos/krb5-1.6.3/src/kadmin/dbutil# ./kdb5_util create -r tssg.org -s
> Loading random data
> Initializing database '/krb5/var/krb5kdc/principal' for realm
> 'tssg.org',
> master key name 'K/M...@tssg.org'
> 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:
> create: Unable to load requested database module 'db2': plugin symbol
> 'kdb_function_table' not found while creating database
> '/krb5/var/krb5kdc/principal'
> root@tssgtestbox:/home/tssgtestbox/Kerberos/krb5-1.6.3/src/kadmin/dbutil#
>
>
> I have checked the google machine and on the FAQ's on the MIT site but i
> cant find anything about this error. Would anyone be able to help me?

I may be wrong, but I think the code is expecting that you've done a
'make install' so that it can find the plugin libraries.

Also, the convention is that your realm name should be all upper-case
(TSSG.ORG rather than tssg.org).

Anthony McGovern

unread,
Nov 13, 2007, 9:26:54 AM11/13/07
to Kevin Coffman, kerb...@mit.edu
Hi There thank you for your swift reply. I tried from the start again.

I downloaded the source from the MIT site again and ran the configure
command. Then i ran the make and then make install.

After that i ran the krb5_util command again using TSSG.ORG but i keep
getting the same error message:

create: Unable to load requested database module 'db2': plugin symbol
'kdb_function_table' not found while creating database

Error. If i attached my kdc.conf and krb5.conf files would that make any
difference?

Kind Regards
Anthony McGovern

Kevin Coffman

unread,
Nov 13, 2007, 9:35:33 AM11/13/07
to Anthony McGovern, kerb...@mit.edu
Try strace and see where it is looking for the plugins and verify the
db2 plugin is actually there?

>From your previous output, it looked like you may have run configure
with "--prefix=/krb5". If so, it should be looking for the db2 plugin
at /krb5/lib/krb5/plugins/kdb/db2.so

K.C.

Anthony McGovern

unread,
Nov 13, 2007, 10:48:54 AM11/13/07
to Kevin Coffman, kerb...@mit.edu
Thank you SO much That worked a treat! i have the 5 files in my
/krb5/var/krb5kdc folder

I guess i just have to start following the install guide/manual again
and see where to go next.

You've saved my office from another 2 weeks of my coffee driven rants at
kerberos. My colleges wish to thank you :o)

Thanks again
Anthony McGovern

0 new messages