python/samba/netcmd: Fix password usage for py2/py3 compatability
authorNoel Power <noel.power@suse.com>
Fri, 27 Apr 2018 14:11:54 +0000 (15:11 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 3 Sep 2018 01:22:23 +0000 (03:22 +0200)
commit252950ac08554d7c86a5cfc2c7fbc626c4c5f863
treef1872e44699289ba5714144b6cc3668a80615a1c
parent7a2df705f6a834194e2e50210bf36a0d425a8fa1
python/samba/netcmd: Fix password usage for py2/py3 compatability

getpass returns str (e.g. bytes) in python2 and str (unicode) in
py3. Adapt code to so we don't do illegal things (like try and decode)
a string in python3

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/domain.py
python/samba/provision/__init__.py