tests py_credentials: Fix encrypt_netr_crypt_password test
authorGary Lockyer <gary@catalyst.net.nz>
Mon, 26 Jun 2017 22:33:56 +0000 (10:33 +1200)
committerGarming Sam <garming@samba.org>
Thu, 29 Jun 2017 04:50:32 +0000 (06:50 +0200)
commit624960272e90449f2b948f43dc7b0bcc7a0f72b6
tree0c1af3246f1916c74d102e83e22ade4caba16641
parent776ed55a89a6caadf9a77a6f7b42b8b7ef69e933
tests py_credentials: Fix encrypt_netr_crypt_password test

The test uses NetrServerPasswordSet2 to change a password, this tests
the end to end encryption.  The original call to NetrServerPasswordSet2
was not utf-16 encoding the new password.  However the call to
netr_DsrEnumerateDomainTrusts was using cached credentials and not
using the new password, so this was not detected.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Garming Sam <garming@samba.org>
Autobuild-Date(master): Thu Jun 29 06:50:32 CEST 2017 on sn-devel-144
python/samba/tests/py_credentials.py