tests password_hash: Add ldap based tests for WDigest
authorGary Lockyer <gary@catalyst.net.nz>
Sun, 21 May 2017 21:49:17 +0000 (09:49 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 25 May 2017 00:25:12 +0000 (02:25 +0200)
commit64199090940cad9f3b4c3f5781426e61418dde9b
tree59c2b4c5151486a979136b8fa49c1b9483e8f5e9
parent83fbd80b3f11f94dc00950c270daf9288148a658
tests password_hash: Add ldap based tests for WDigest

Add tests of the WDigest values using ldap.  This allows the tests to be
run against Windows, to validate the calculated values.

Tests validated against Windows Server 2012 R2

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/password_hash.py
python/samba/tests/password_hash_ldap.py [new file with mode: 0644]
source4/dsdb/samdb/ldb_modules/password_hash.c
source4/selftest/tests.py