Skip to content

Commit

Permalink
kuser: use anon_pkinit_realm instead of anon-pkinit-realm
Browse files Browse the repository at this point in the history
MIT prefers underscores in ccache configuration file keys, so in the interest
of future interoperability use anon_pkinit_realm instead of anon-pkinit-realm
when storing the anonymous PKINIT TGS realm.

(cherry picked from commit eacfcd5)
  • Loading branch information
lhoward authored and jaltman committed May 22, 2019
1 parent acca763 commit 5161093
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kuser/kinit.c
Expand Up @@ -239,7 +239,7 @@ copy_configs(krb5_context context,
krb5_principal start_ticket_server)
{
krb5_error_code ret;
const char *cfg_names[] = {"realm-config", "FriendlyName", "anon-pkinit-realm", NULL};
const char *cfg_names[] = {"realm-config", "FriendlyName", "anon_pkinit_realm", NULL};
const char *cfg_names_w_pname[] = {"fast_avail", NULL};
krb5_data cfg_data;
size_t i;
Expand Down Expand Up @@ -288,7 +288,7 @@ get_anon_pkinit_tgs_name(krb5_context context,
krb5_data data;
char *realm;

ret = krb5_cc_get_config(context, ccache, NULL, "anon-pkinit-realm", &data);
ret = krb5_cc_get_config(context, ccache, NULL, "anon_pkinit_realm", &data);
if (ret == 0)
realm = strndup(data.data, data.length);
else
Expand Down Expand Up @@ -819,7 +819,7 @@ get_new_tickets(krb5_context context,
data.length = strlen(principal->realm);
data.data = principal->realm;

krb5_cc_set_config(context, ccache, NULL, "anon-pkinit-realm", &data);
krb5_cc_set_config(context, ccache, NULL, "anon_pkinit_realm", &data);
}

out:
Expand Down

0 comments on commit 5161093

Please sign in to comment.