Skip Menu |
 

Subject: kdb5_util load of -b6 or -old DB formats fails
Loading a database dump in -b6 or -old format currently fails with the
error message:

kdb5_util: cannot make newly loaded database live (Database has not
been initialized)

Because these formats have the create_kadm5 flag set, load_db() calls
kadm5_create_magic_princs(), which calls kadm5_init(), then
kadm5_create_principal() several times, then kadm5_destroy(), which
closes the DB handle in the context. Then load_db() fails to promote
the database because it has been closed.

This failure goes back to at least version 1.3, although the error path
isn't always the same (older releases try to initialize the history
principal in kadm5_init() and fail because there's no master key entry).
Since this has been broken for a long time and no one has complained, it
may just be time to desupport dump formats older than beta7.
This is moot now that the -old and -b6 formats have been desupported.