krb5 commit: Report extended errors in kinit -k -t KDB:

Greg Hudson ghudson at mit.edu
Mon Mar 19 20:39:45 EDT 2018


https://github.com/krb5/krb5/commit/d4d902d317a2acc46ee71094a33a9203b6135275
commit d4d902d317a2acc46ee71094a33a9203b6135275
Author: Greg Hudson <ghudson at mit.edu>
Date:   Sat Mar 17 22:47:34 2018 -0400

    Report extended errors in kinit -k -t KDB:
    
    In kinit, if we recreate the context using kinit_kdb_init(), also
    reset the global errctx so that we use the new context to retrieve
    extended error messages.
    
    ticket: 8652 (new)

 src/clients/kinit/kinit.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/clients/kinit/kinit.c b/src/clients/kinit/kinit.c
index a518284..3fdae28 100644
--- a/src/clients/kinit/kinit.c
+++ b/src/clients/kinit/kinit.c
@@ -718,6 +718,7 @@ k5_kinit(struct k_opts *opts, struct k5_data *k5)
 #ifndef _WIN32
         if (strncmp(opts->keytab_name, "KDB:", 4) == 0) {
             ret = kinit_kdb_init(&k5->ctx, k5->me->realm.data);
+            errctx = k5->ctx;
             if (ret) {
                 com_err(progname, ret,
                         _("while setting up KDB keytab for realm %s"),


More information about the cvs-krb5 mailing list