From: Joseph Sutton Date: Wed, 14 Dec 2022 23:17:13 +0000 (+1300) Subject: tests/krb5: Allow tests to set SamLogon validation level X-Git-Tag: talloc-2.4.1~1647 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f38d4a33a6fab9fa6e8e6436f66b0a220d6325ea;p=thirdparty%2Fsamba.git tests/krb5: Allow tests to set SamLogon validation level We'll want to test various levels to ensure they all behave as expected. 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 08c42d83aae..4bf2db4f838 100644 --- a/python/samba/tests/krb5/kdc_base_test.py +++ b/python/samba/tests/krb5/kdc_base_test.py @@ -2341,7 +2341,8 @@ class KDCBaseTest(RawKerberosTest): # Test SamLogon. Authentication should succeed for non-protected accounts, # and fail for protected accounts. - def _test_samlogon(self, creds, logon_type, protected): + def _test_samlogon(self, creds, logon_type, protected, + validation_level=netlogon.NetlogonValidationSamInfo2): samdb = self.get_samdb() server = samdb.host_dns_name() @@ -2408,7 +2409,6 @@ class KDCBaseTest(RawKerberosTest): logon.identity_info = identity_info - validation_level = netlogon.NetlogonValidationSamInfo2 netr_flags = 0 try: