From 6a7b74548240c8076d6e75be5221272dfa80265d Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Tue, 15 Jun 2010 10:35:25 -0400 Subject: Standardize on correct spelling of "principal" for krb5 https://fedorahosted.org/sssd/ticket/542 --- src/providers/krb5/krb5_child.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/providers/krb5/krb5_child.c') diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c index 18b7a220a..af9c2d1a8 100644 --- a/src/providers/krb5/krb5_child.c +++ b/src/providers/krb5/krb5_child.c @@ -63,7 +63,7 @@ struct krb5_child_ctx { char *kdcip; char *realm; - char *changepw_principle; + char *changepw_principal; char *ccache_dir; char *ccname_template; int auth_timeout; @@ -588,7 +588,7 @@ static errno_t changepw_child(int fd, struct krb5_req *kr) kerr = krb5_get_init_creds_password(kr->ctx, kr->creds, kr->princ, pass_str, prompter, kr, 0, - kr->krb5_ctx->changepw_principle, + kr->krb5_ctx->changepw_principal, kr->options); if (kerr != 0) { KRB5_DEBUG(1, kerr); @@ -721,7 +721,7 @@ static errno_t tgt_req_child(int fd, struct krb5_req *kr) if (kerr == KRB5KDC_ERR_KEY_EXP) { kerr = krb5_get_init_creds_password(kr->ctx, kr->creds, kr->princ, pass_str, sss_krb5_prompter, kr, 0, - kr->krb5_ctx->changepw_principle, + kr->krb5_ctx->changepw_principal, kr->options); krb5_free_cred_contents(kr->ctx, kr->creds); if (kerr == 0) { @@ -872,10 +872,10 @@ static int krb5_setup(struct krb5_req *kr, uint32_t offline) goto failed; } - kr->krb5_ctx->changepw_principle = getenv(SSSD_KRB5_CHANGEPW_PRINCIPLE); - if (kr->krb5_ctx->changepw_principle == NULL) { + kr->krb5_ctx->changepw_principal = getenv(SSSD_KRB5_CHANGEPW_PRINCIPAL); + if (kr->krb5_ctx->changepw_principal == NULL) { DEBUG(1, ("Cannot read [%s] from environment.\n", - SSSD_KRB5_CHANGEPW_PRINCIPLE)); + SSSD_KRB5_CHANGEPW_PRINCIPAL)); if (kr->pd->cmd == SSS_PAM_CHAUTHTOK) { goto failed; } -- cgit