kdc: Fix spelling of error and log messages

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:
Joseph Sutton
2023-07-05 11:59:59 +12:00
committed by Jeffrey Altman
parent 560c9da844
commit fbe89adf27
2 changed files with 5 additions and 5 deletions

View File

@@ -854,7 +854,7 @@ pa_enc_ts_validate(astgs_request_t r, const PA_DATA *pa)
enc_data.etype, &pa_key);
if(ret){
char *estr;
_kdc_set_e_text(r, "No key matching entype");
_kdc_set_e_text(r, "No key matching enctype");
ret = KRB5KDC_ERR_ETYPE_NOSUPP;
if(krb5_enctype_to_string(r->context, enc_data.etype, &estr))
estr = NULL;
@@ -926,7 +926,7 @@ pa_enc_ts_validate(astgs_request_t r, const PA_DATA *pa)
krb5_data_free(&ts_data);
if(ret){
ret = KRB5KDC_ERR_PREAUTH_FAILED;
_kdc_r_log(r, 4, "Failed to decode PA-ENC-TS_ENC -- %s",
_kdc_r_log(r, 4, "Failed to decode PA-ENC-TS-ENC -- %s",
r->cname);
goto out;
}
@@ -2470,7 +2470,7 @@ _kdc_as_rep(astgs_request_t r)
if(r->client->flags.postdate && r->server->flags.postdate)
r->et.flags.may_postdate = f.allow_postdate;
else if (f.allow_postdate){
_kdc_set_e_text(r, "Ticket may not be postdate");
_kdc_set_e_text(r, "Ticket may not be postdateable");
ret = KRB5KDC_ERR_POLICY;
goto out;
}
@@ -2650,7 +2650,7 @@ _kdc_as_rep(astgs_request_t r)
}
if (r->reply_key.keytype == ETYPE_NULL) {
_kdc_set_e_text(r, "Client have no reply key");
_kdc_set_e_text(r, "Client has no reply key");
ret = KRB5KDC_ERR_CLIENT_NOTYET;
goto out;
}

View File

@@ -1806,7 +1806,7 @@ server_lookup:
break;
if(i == b->etype.len) {
kdc_log(context, config, 4,
"Addition ticket have not matching etypes");
"Addition ticket has no matching etypes");
krb5_clear_error_message(context);
ret = KRB5KDC_ERR_ETYPE_NOSUPP;
kdc_audit_addreason((kdc_request_t)priv,