kdc: KRB5KDC_ERR_{C,S}_PRINCIPAL_UNKNOWN if missing field
commit7a2a6e0bcb0f9508322e940360b95eae52572cb2
authorLuke Howard <lukeh@padl.com>
Tue, 31 Aug 2021 05:38:16 +0000 (31 17:38 +1200)
committerJule Anger <janger@samba.org>
Thu, 16 Sep 2021 08:07:12 +0000 (16 08:07 +0000)
tree92597648e4f9afa6383513b182fc79234517d448
parent1e27b45f49c1a6d610ec498e48b4ed4f6e85c772
kdc: KRB5KDC_ERR_{C,S}_PRINCIPAL_UNKNOWN if missing field

If missing cname or sname in AS-REQ, return KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN and
KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN. This matches MIT behaviour.

[abartlet@samba.org Backported from Heimdal commit 892a1ffcaad98157e945c540b81f65edb14d29bd
and knownfail added.  Further adapted knownfail for 4.14 due to conflicts
as the patch that adds a test which crashes old MIT versions is
omitted]

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14770
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14817

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
selftest/knownfail_heimdal_kdc
source4/heimdal/kdc/kerberos5.c