From f38d4a33a6fab9fa6e8e6436f66b0a220d6325ea Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Thu, 15 Dec 2022 12:17:13 +1300 Subject: [PATCH] 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 --- python/samba/tests/krb5/kdc_base_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: