join.py: Do not expose the old machine password over NTLM if -k yes was set
authorAndrew Bartlett <abartlet@samba.org>
Mon, 10 Apr 2017 04:10:00 +0000 (16:10 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 10 Jun 2017 19:48:20 +0000 (21:48 +0200)
commit00de59a478301a00a33b420524cd52caf481854f
tree66b790e3e5abf95a10a32147534a4819f0647807
parent970fdfae6a18bf11d423a72973c0f7b589e6f92a
join.py: Do not expose the old machine password over NTLM if -k yes was set

This makes the test for a valid machine account stricter (as a kerberos error could
cause this to fail and so skip the validation), but we never wish to use NTLM
if the administrator disabled it on the command line

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
python/samba/join.py