opts->k5_cache_name);
return 0;
}
+ if (opts->verbose) {
+ fprintf(stderr, "Using specified cache: %s\n",
+ opts->k5_cache_name);
+ }
}
else
{
com_err(progname, code, "while getting default ccache");
return 0;
}
+ if (opts->verbose) {
+ fprintf(stderr, "Using default cache: %s\n",
+ krb5_cc_get_name(k5->ctx, k5->cc));
+ }
}
if (opts->principal_name)
com_err(progname, code, "when unparsing name");
return 0;
}
+ if (opts->verbose)
+ fprintf(stderr, "Using principal: %s\n", k5->name);
+
opts->principal_name = k5->name;
return 1;
opts->keytab_name);
goto cleanup;
}
+ if (opts->verbose)
+ fprintf(stderr, "Using keytab: %s\n", opts->keytab_name);
}
for (i = 0; i < opts->num_pa_opts; i++) {
opts->pa_opts[i].attr, opts->pa_opts[i].value);
goto cleanup;
}
+ if (opts->verbose) {
+ fprintf(stderr, "PA Option %s = %s\n", opts->pa_opts[i].attr,
+ opts->pa_opts[i].value);
+ }
}
code = krb5_get_init_creds_opt_set_out_ccache(k5->ctx, options, k5->cc);
if (code)
opts->k5_cache_name?opts->k5_cache_name:"");
goto cleanup;
}
+ if (opts->verbose)
+ fprintf(stderr, "Initialized cache\n");
code = krb5_cc_store_cred(k5->ctx, k5->cc, &my_creds);
if (code) {
com_err(progname, code, "while storing credentials");
goto cleanup;
}
+ if (opts->verbose)
+ fprintf(stderr, "Stored credentials\n");
}
notix = 0;