diff options
author | Andreas Schneider <asn@samba.org> | 2018-01-30 18:09:00 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-02-15 00:18:28 +0100 |
commit | a45e70bf47cb4b48f69a237298e143f574bf58bb (patch) | |
tree | 0f77ee4c3d475b932c749749152e68abd15cacb8 /python/samba/samdb.py | |
parent | 298d812ca053811a56e5092fb52bffa60d007650 (diff) | |
download | samba-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/samba/samdb.py')
-rw-r--r-- | python/samba/samdb.py | 2 |
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) |