mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
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 <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
f44943b2ba
commit
f38d4a33a6
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user