client_creds = self._get_creds(account_type=self.AccountType.USER,
assigned_policy=client_policy)
+ # FIXME: we need to pass this parameter only because Samba doesn’t
+ # handle ‘krbtgt@REALM’ principals correctly (see
+ # https://bugzilla.samba.org/show_bug.cgi?id=15482).
+ krbtgt_sname = self.get_krbtgt_sname()
+
# Show that authentication succeeds.
self._armored_as_req(client_creds,
self.get_krbtgt_creds(),
- mach_tgt)
+ mach_tgt,
+ target_sname=krbtgt_sname)
self.check_as_log(client_creds,
armor_creds=mach_creds,
client_creds = self._get_creds(account_type=self.AccountType.USER,
assigned_policy=client_policy)
+ # FIXME: we need to pass this parameter only because Samba doesn’t
+ # handle ‘krbtgt@REALM’ principals correctly (see
+ # https://bugzilla.samba.org/show_bug.cgi?id=15482).
+ krbtgt_sname = self.get_krbtgt_sname()
+
# Show that authentication succeeds.
self._armored_as_req(client_creds,
self.get_krbtgt_creds(),
- mach_tgt)
+ mach_tgt,
+ target_sname=krbtgt_sname)
self.check_as_log(client_creds,
armor_creds=mach_creds,
(security.SID_CLAIMS_VALID, SidType.EXTRA_SID, self.default_attrs),
}
+ # FIXME: we need to pass this parameter only because Samba doesn’t
+ # handle ‘krbtgt@REALM’ principals correctly (see
+ # https://bugzilla.samba.org/show_bug.cgi?id=15482).
+ krbtgt_sname = self.get_krbtgt_sname()
+
# Show that obtaining a service ticket with an AS‐REQ is allowed.
self._armored_as_req(client_creds,
self.get_krbtgt_creds(),
mach_tgt,
+ target_sname=krbtgt_sname,
expected_groups=expected_groups)
self.check_as_log(client_creds,
target_creds,
armor_tgt,
*,
+ target_sname=None,
expected_error=0,
expected_sname=None,
expect_edata=None,
client_cname = self.PrincipalName_create(name_type=NT_PRINCIPAL,
names=[client_username])
- target_name = target_creds.get_username()
- target_sname = self.PrincipalName_create(
- name_type=NT_PRINCIPAL, names=[target_name])
+ if target_sname is None:
+ target_name = target_creds.get_username()
+ target_sname = self.PrincipalName_create(
+ name_type=NT_PRINCIPAL, names=[target_name])
target_realm = target_creds.get_realm()
target_decryption_key = self.TicketDecryptionKey_from_creds(
target_creds)
^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\)
-#
-# Conditional ACE device restrictions
-#
-^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.DeviceRestrictionTests.test_pac_claims_present\(ad_dc\)
-^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.DeviceRestrictionTests.test_pac_groups_present\(ad_dc\)
-^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.TgsReqServicePolicyTests.test_simple_as_req_client_policy_only\(ad_dc\)
#
^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.DeviceRestrictionTests.test_pac_claims_invalid\(ad_dc\)
^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.DeviceRestrictionTests.test_pac_claims_not_present\(ad_dc\)
-^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.DeviceRestrictionTests.test_pac_claims_present\(ad_dc\)
^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.DeviceRestrictionTests.test_pac_device_info\(ad_dc\)
^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.DeviceRestrictionTests.test_pac_groups_not_present\(ad_dc\)
-^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.DeviceRestrictionTests.test_pac_groups_present\(ad_dc\)
^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.DeviceRestrictionTests.test_pac_resource_groups_present\(ad_dc\)
^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.DeviceRestrictionTests.test_pac_resource_groups_present_to_service_no_sid_compression\(ad_dc\)
^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.DeviceRestrictionTests.test_pac_resource_groups_present_to_service_sid_compression\(ad_dc\)
^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.DeviceRestrictionTests.test_pac_well_known_groups_not_present\(ad_dc\)
^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.TgsReqServicePolicyTests.test_simple_as_req_client_and_target_policy\(ad_dc\)
-^samba.tests.krb5.conditional_ace_tests.samba.tests.krb5.conditional_ace_tests.TgsReqServicePolicyTests.test_simple_as_req_client_policy_only\(ad_dc\)