kdc: audit "yes" boolean values as booleans

Audit boolean values that were logged as "yes" as boolean values; this will
change audit log values to "true" instead, so this patch may be omitted.
This commit is contained in:
Luke Howard
2022-01-01 18:32:52 +11:00
parent e15e711b13
commit a9c6bc2bf2
3 changed files with 5 additions and 6 deletions

View File

@@ -1638,8 +1638,7 @@ bnegotiate(struct bx509_request_desc *r)
if (ret == 0) {
heim_audit_addkv((heim_svc_req_desc)r, KDC_AUDIT_VIS, "target", "%s",
r->target ? r->target : "<unknown>");
heim_audit_addkv((heim_svc_req_desc)r, 0, "redir", "%s",
r->redir ? "yes" : "no");
heim_audit_addkv_bool((heim_svc_req_desc)r, "redir", !!r->redir);
ret = validate_token(r);
}
/* bnegotiate_get_target() and validate_token() call bad_req() */