summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-01-30 18:09:00 +0100
committerAndrew Bartlett <abartlet@samba.org>2018-02-15 00:18:28 +0100
commita45e70bf47cb4b48f69a237298e143f574bf58bb (patch)
tree0f77ee4c3d475b932c749749152e68abd15cacb8 /python
parent298d812ca053811a56e5092fb52bffa60d007650 (diff)
downloadsamba-a45e70bf47cb4b48f69a237298e143f574bf58bb.tar.gz
python: Convert base64 encoded password to utf-8
Pair-Programmed-With: Alexander Bokovoy <ab@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/samdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/samdb.py b/python/samba/samdb.py
index 7f52a5e56f8..abc7e188853 100644
--- a/python/samba/samdb.py
+++ b/python/samba/samdb.py
@@ -515,7 +515,7 @@ dn: %s
changetype: modify
replace: unicodePwd
unicodePwd:: %s
-""" % (user_dn, base64.b64encode(pw))
+""" % (user_dn, base64.b64encode(pw).decode('utf-8'))
self.modify_ldif(setpw)