issue with 1.6 and kdb5_util load, requesting help

Will Fiveash William.Fiveash at
Tue Mar 20 15:52:55 EDT 2007

While doing some testing I noticed that the kdb5_util load command is
broken when using the db2 KDB plugin and the KDB does not exist.  The
problem appears to be that in the process of doing a load
krb5_db2_db_rename() is called which in turn calls krb5_db2_db_init().
In krb5_db2_db_init() there is this logic:

    if ((db_ctx->db_lf_file = open(filename, O_RDWR, 0666)) < 0) {
        if ((db_ctx->db_lf_file = open(filename, O_RDONLY, 0666)) < 0) {
            retval = errno;
            goto err_out;

which is trying to open the principal.ok lock-file.  If this doesn't
exist then this causes a fatal error.  Thoughts on how to address this
are appreciated.

Will Fiveash
Sun Microsystems Inc.
Austin, TX, USA (TZ=CST6CDT)

More information about the krbdev mailing list