1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

tests/krb5: Allow creating a target server account with or without compound ID support

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-03-03 13:24:17 +13:00 committed by Andrew Bartlett
parent 53400a6dfe
commit fa3d693b28

View File

@ -1849,8 +1849,15 @@ class KDCBaseTest(RawKerberosTest):
# Get the credentials and server principal name of either the krbtgt, or a
# specially created account, with resource SID compression either supported
# or unsupported.
def get_target(self, to_krbtgt, *, compression=None, extra_enctypes=0):
def get_target(self,
to_krbtgt, *,
compound_id=None,
compression=None,
extra_enctypes=0):
if to_krbtgt:
self.assertIsNone(compound_id,
"it's no good specifying compound id support "
"for the krbtgt")
self.assertIsNone(compression,
"it's no good specifying compression support "
"for the krbtgt")
@ -1867,6 +1874,7 @@ class KDCBaseTest(RawKerberosTest):
security.KERB_ENCTYPE_RC4_HMAC_MD5 |
security.KERB_ENCTYPE_AES256_CTS_HMAC_SHA1_96 |
extra_enctypes,
'compound_id_support': compound_id,
'sid_compression_support': compression,
})
target_name = creds.get_username()