1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

tests/krb5: Move assignments closer to where the variables are used

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-10-18 14:15:27 +13:00 committed by Andrew Bartlett
parent 7f860d1cba
commit 2ddd8ca3c7

View File

@ -2741,9 +2741,6 @@ class ConditionalAceTests(ConditionalAceBaseTests):
except TypeError:
self.assertIsNot(code, CRASHES_WINDOWS)
samdb = self.get_samdb()
domain_sid_str = samdb.get_domain_sid()
client_creds = self.get_cached_creds(
account_type=self.AccountType.USER,
opts={
@ -2824,6 +2821,9 @@ class ConditionalAceTests(ConditionalAceBaseTests):
target_creds)
target_etypes = target_creds.tgs_supported_enctypes
samdb = self.get_samdb()
domain_sid_str = samdb.get_domain_sid()
expected_groups = self.map_sids(expected_groups, None, domain_sid_str)
expected_device_groups = self.map_sids(expected_device_groups, None, domain_sid_str)