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>
^samba.tests.krb5.fast_tests.samba.tests.krb5.fast_tests.FAST_Tests.test_fast_no_sname.ad_dc
^samba.tests.krb5.fast_tests.samba.tests.krb5.fast_tests.FAST_Tests.test_fast_tgs_no_sname.ad_dc
^samba.tests.krb5.fast_tests.samba.tests.krb5.fast_tests.FAST_Tests.test_simple_tgs_no_sname.ad_dc
+^samba.tests.krb5.fast_tests.samba.tests.krb5.fast_tests.FAST_Tests.test_simple_no_sname.ad_dc
flags |= HDB_F_CANON;
if(b->sname == NULL){
- ret = KRB5KRB_ERR_GENERIC;
+ ret = KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN;
e_text = "No server in request";
} else{
ret = _krb5_principalname2krb5_principal (context,
goto out;
}
if(b->cname == NULL){
- ret = KRB5KRB_ERR_GENERIC;
+ ret = KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN;
e_text = "No client in request";
} else {
ret = _krb5_principalname2krb5_principal (context,