mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +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:
parent
7f860d1cba
commit
2ddd8ca3c7
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user