From: Joseph Sutton Date: Thu, 10 Aug 2023 21:41:08 +0000 (+1200) Subject: tests/krb5: Allow specifying additional details for a test account X-Git-Tag: tevent-0.16.0~1015 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da89b86e528273b6a99295878f69b2b222487235;p=thirdparty%2Fsamba.git tests/krb5: Allow specifying additional details for a test account Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/krb5/authn_policy_tests.py b/python/samba/tests/krb5/authn_policy_tests.py index 068f2fe3634..3e695b232e3 100755 --- a/python/samba/tests/krb5/authn_policy_tests.py +++ b/python/samba/tests/krb5/authn_policy_tests.py @@ -257,6 +257,7 @@ class AuthnPolicyBaseTests(AuthLogTestBase, KdcTgsBaseTests): ntlm=False, spn=None, allowed_rodc=None, + additional_details=None, cached=None): if cached is None: # Policies and silos are rarely reused between accounts. @@ -282,6 +283,8 @@ class AuthnPolicyBaseTests(AuthLogTestBase, KdcTgsBaseTests): if allowed_rodc: opts['allowed_replication_mock'] = True opts['revealed_to_mock_rodc'] = True + if additional_details is not None: + opts['additional_details'] = self.freeze(additional_details) if members: opts['member_of'] = members