From: Greg Hudson Date: Sun, 18 Mar 2018 02:47:34 +0000 (-0400) Subject: Report extended errors in kinit -k -t KDB: X-Git-Tag: krb5-1.17-beta1~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F749%2Fhead;p=thirdparty%2Fkrb5.git 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) --- diff --git a/src/clients/kinit/kinit.c b/src/clients/kinit/kinit.c index a518284ea5..3fdae28784 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"),