1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

tests/krb5: Ensure that device SIDs and claims are present only if we expect them to be

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-11-01 13:38:24 +13:00 committed by Andrew Bartlett
parent 51a4443b04
commit 7048f380eb

View File

@ -4390,12 +4390,12 @@ class TgsReqServicePolicyTests(ConditionalAceBaseTests):
# Show that authorization succeeds.
self._tgs_req(client_tgt, 0, client_creds, target_creds, armor_tgt=mach_tgt,
expected_groups=expected_sids,
expect_device_info=bool(expected_device_sids) or None,
expect_device_info=bool(expected_device_sids),
expected_device_domain_sid=domain_sid_str,
expected_device_groups=expected_device_sids,
expect_client_claims=bool(expected_client_claims) or None,
expected_client_claims=expected_client_claims,
expect_device_claims=bool(expected_device_claims) or None,
expect_device_claims=bool(expected_device_claims),
expected_device_claims=expected_device_claims)
self.check_tgs_log(client_creds, target_creds)