tests/samba-tool user_wdigest: avoid py3-incompatible md5 module
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 31 Jan 2018 22:56:06 +0000 (11:56 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 9 Feb 2018 06:59:20 +0000 (07:59 +0100)
commit57784b41c1245397b1d8eaabdff0553f205b5231
treebf572e0e556bfb80789ffecd8275d72288e8dff0
parent5a483bc0d1d1daf68999c397a0094631fadacc40
tests/samba-tool user_wdigest: avoid py3-incompatible md5 module

In Python3, the md5 and sha modules are gone, but the functions are
available via hashlib (which is also in python 2.5+).

The md5.hexdigest() does what binascii.hexlify(md5.digest()) does.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/samba_tool/user_wdigest.py