diff options
author | Noel Power <noel.power@suse.com> | 2018-11-28 14:06:54 +0000 |
---|---|---|
committer | Noel Power <npower@samba.org> | 2018-12-10 10:38:21 +0100 |
commit | 0d73a2b0a29c108c3a0efbbe0473142046302b71 (patch) | |
tree | 7d817da50c2278b4f61abfb6501b60c2d47fd722 /python/samba/join.py | |
parent | d253e84a41b9f18243d57c41656d28fcd07e476a (diff) | |
download | samba-0d73a2b0a29c108c3a0efbbe0473142046302b71.tar.gz |
PY3: net.change_password & net.set_password take string not bytes
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python/samba/join.py')
-rw-r--r-- | python/samba/join.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/join.py b/python/samba/join.py index e2aa5fdd28a..cf5d1b92b66 100644 --- a/python/samba/join.py +++ b/python/samba/join.py @@ -735,7 +735,7 @@ class DCJoinContext(object): pass ctx.net.set_password(account_name=ctx.samname, domain_name=ctx.domain_name, - newpassword=ctx.acct_pass.encode('utf-8')) + newpassword=ctx.acct_pass) res = ctx.samdb.search(base=ctx.acct_dn, scope=ldb.SCOPE_BASE, attrs=["msDS-KeyVersionNumber", |