From: Joseph Sutton Date: Mon, 30 Oct 2023 02:20:59 +0000 (+1300) Subject: tests/krb5: Test that the Service Asserted Identity SID is not regarded from an RODC... X-Git-Tag: talloc-2.4.2~939 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=947d3e5932e128fdbe782477e981087d8cf5bc26;p=thirdparty%2Fsamba.git tests/krb5: Test that the Service Asserted Identity SID is not regarded from an RODC‐issued PAC Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/krb5/conditional_ace_tests.py b/python/samba/tests/krb5/conditional_ace_tests.py index b72bbb25093..c69ce9db0c3 100755 --- a/python/samba/tests/krb5/conditional_ace_tests.py +++ b/python/samba/tests/krb5/conditional_ace_tests.py @@ -2793,7 +2793,11 @@ class ConditionalAceTests(ConditionalAceBaseTests): self._tgs(f'Member_of SID({self.service_asserted_identity})', client_from_rodc=True, client_sids=client_sids, - expected_groups=client_sids) + code=KDC_ERR_POLICY, + status=ntstatus.NT_STATUS_AUTHENTICATION_FIREWALL_FAILED, + event=AuditEvent.KERBEROS_SERVER_RESTRICTION, + reason=AuditReason.ACCESS_DENIED, + edata=self.expect_padata_outer) def test_tgs_with_service_asserted_identity_device_from_rodc(self): client_sids = { @@ -2819,8 +2823,11 @@ class ConditionalAceTests(ConditionalAceBaseTests): client_from_rodc=True, device_from_rodc=True, client_sids=client_sids, - expected_groups=client_sids, - code=(0, CRASHES_WINDOWS)) + code=(KDC_ERR_POLICY, CRASHES_WINDOWS), + status=ntstatus.NT_STATUS_AUTHENTICATION_FIREWALL_FAILED, + event=AuditEvent.KERBEROS_SERVER_RESTRICTION, + reason=AuditReason.ACCESS_DENIED, + edata=self.expect_padata_outer) def test_tgs_without_claims_valid(self): client_sids = { diff --git a/selftest/knownfail_heimdal_kdc b/selftest/knownfail_heimdal_kdc index d59a8cff84d..d55d2bc00ab 100644 --- a/selftest/knownfail_heimdal_kdc +++ b/selftest/knownfail_heimdal_kdc @@ -127,8 +127,6 @@ ^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.ConditionalAceTests.test_pac_claim_cmp__1_zero_uint_2_0___zero_uint_\(ad_dc\) ^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.ConditionalAceTests.test_tgs_with_claims_valid_both_from_rodc\(ad_dc\) ^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.ConditionalAceTests.test_tgs_with_claims_valid_client_from_rodc\(ad_dc\) -^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.ConditionalAceTests.test_tgs_with_service_asserted_identity_both_from_rodc\(ad_dc\) -^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.ConditionalAceTests.test_tgs_with_service_asserted_identity_client_from_rodc\(ad_dc\) ^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.ConditionalAceTests.test_tgs_without_aa_asserted_identity_both_from_rodc\(ad_dc\) ^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.ConditionalAceTests.test_tgs_without_aa_asserted_identity_client_from_rodc\(ad_dc\) ^samba\.tests\.krb5\.conditional_ace_tests\.samba\.tests\.krb5\.conditional_ace_tests\.ConditionalAceTests\.test_delegating_proxy_in_network_group_rbcd\(ad_dc\)$