From: Joseph Sutton Date: Fri, 3 Mar 2023 00:24:17 +0000 (+1300) Subject: tests/krb5: Allow creating a target server account with or without compound ID support X-Git-Tag: talloc-2.4.1~1460 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa3d693b28f3079e1f813dcbcd74007f238df56f;p=thirdparty%2Fsamba.git tests/krb5: Allow creating a target server account with or without compound ID support Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/krb5/kdc_base_test.py b/python/samba/tests/krb5/kdc_base_test.py index 9b528eba7f2..6500a188972 100644 --- a/python/samba/tests/krb5/kdc_base_test.py +++ b/python/samba/tests/krb5/kdc_base_test.py @@ -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()