[krbdev.mit.edu #7563] kdb5_util load of -b6 or -old DB formats fails

Greg Hudson via RT rt-comment at krbdev.mit.edu
Mon Feb 4 15:49:38 EST 2013


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.



More information about the krb5-bugs mailing list