add [appdefaults]kinit/pkinit-ca-dir
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13100 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -448,7 +448,7 @@ get_new_tickets(krb5_context context,
|
|||||||
if (pac_flag != -1)
|
if (pac_flag != -1)
|
||||||
krb5_get_init_creds_opt_set_paq_request(context, opt,
|
krb5_get_init_creds_opt_set_paq_request(context, opt,
|
||||||
pac_flag ? TRUE : FALSE);
|
pac_flag ? TRUE : FALSE);
|
||||||
if (pk_cert_file || pk_key_file || pk_ca_dir) {
|
if (pk_cert_file || pk_key_file) {
|
||||||
ret = krb5_get_init_creds_opt_set_pkinit(context, opt,
|
ret = krb5_get_init_creds_opt_set_pkinit(context, opt,
|
||||||
pk_cert_file,
|
pk_cert_file,
|
||||||
pk_key_file,
|
pk_key_file,
|
||||||
@@ -704,6 +704,11 @@ main (int argc, char **argv)
|
|||||||
krb5_principal_get_realm(context, principal),
|
krb5_principal_get_realm(context, principal),
|
||||||
"afslog", TRUE, &do_afslog);
|
"afslog", TRUE, &do_afslog);
|
||||||
|
|
||||||
|
if (pk_ca_dir == NULL)
|
||||||
|
krb5_appdefault_string(context, "kinit",
|
||||||
|
krb5_principal_get_realm(context, principal),
|
||||||
|
"pkinit-ca-dir", NULL, &pk_ca_dir);
|
||||||
|
|
||||||
if(!addrs_flag && extra_addresses.num_strings > 0)
|
if(!addrs_flag && extra_addresses.num_strings > 0)
|
||||||
krb5_errx(context, 1, "specifying both extra addresses and "
|
krb5_errx(context, 1, "specifying both extra addresses and "
|
||||||
"no addresses makes no sense");
|
"no addresses makes no sense");
|
||||||
|
Reference in New Issue
Block a user