summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/samba/netcmd/user.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/samba/netcmd/user.py b/python/samba/netcmd/user.py
index affbbf067c1..cadd80fd991 100644
--- a/python/samba/netcmd/user.py
+++ b/python/samba/netcmd/user.py
@@ -1958,7 +1958,8 @@ samba-tool user syncpasswords --terminate \\
assert res is None
input = "%s" % (ldif)
- reply = sync_command_p.communicate(input)[0]
+ reply = sync_command_p.communicate(
+ input.encode('utf-8'))[0].decode('utf-8')
log_msg("%s\n" % (reply))
res = sync_command_p.poll()
if res is None: