tests: Switchover auth_log from s4 SMB client bindings to s4
authorTim Beale <timbeale@catalyst.net.nz>
Wed, 16 Jan 2019 00:34:29 +0000 (13:34 +1300)
committerJeremy Allison <jra@samba.org>
Thu, 17 Jan 2019 03:47:56 +0000 (04:47 +0100)
commita67b711ebcc8c88f37a09e8bbdbc97e412d76911
tree2ac7dbfd5348fe23834a84c2b17d8654c1f29a91
parent914e9d359010361c7fcaae8f17ef6404d5c18805
tests: Switchover auth_log from s4 SMB client bindings to s4

The main changes required are:
- we need to use an s3 loadparm instead of the standard s4 lp.
- the s3 SMB bindings don't support the use_spnego/ntlmv2_auth params,
  however, we can set these in the loadparm instead, which will get the
  SMB client code to do what we want. Instead of passing in boolean
  parameters, we need to use yes/no strings that the lp will accept.
  (We always set these values because the underlying lp context is
  actually global, and setting a value is 'sticky' and will persist
  across test cases. These conf settings are only used by the SMB client
  code, and so will only affect the SMB test cases).
- For the no_spnego_no_ntlmv2 test cases, we now explicitly force it to
  an SMBv1 connection. The s4 bindings only ever supported SMBv1
  connections, so this is the same behaviour. The other test cases will
  now try to negotiate SMBv2 connections, however, the no_ntlmv2 test
  cases are explicitly checking for bare-NTLM (with the s3 bindings, it
  now ends up as NTLMSSP by default).

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jan 17 04:47:56 CET 2019 on sn-devel-144
python/samba/tests/auth_log.py