diff options
author | Heinz Hoelzl <heinz.hoelzl@gvcc.net> | 2019-10-10 10:14:15 +1300 |
---|---|---|
committer | Björn Baumbach <bb@sernet.de> | 2019-10-23 15:54:43 +0000 |
commit | 6e8c3ae6e9be38fdd1d1693b93c8629391799b19 (patch) | |
tree | 5a13816a1adf681c7f6dd55b0e7bb88108e2d077 /python | |
parent | 263bec1b8d0744da73dd92e4a361fb7430289ab3 (diff) | |
download | samba-6e8c3ae6e9be38fdd1d1693b93c8629391799b19.tar.gz |
samba-tool: py3 compatiblity in 'user syncpasswords --daemon'
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14154
Signed-off-by: Heinz Hölzl <heinz.hoelzl@gvcc.net>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Björn Baumbach <bb@sernet.de>
Autobuild-User(master): Björn Baumbach <bb@sernet.de>
Autobuild-Date(master): Wed Oct 23 15:54:43 UTC 2019 on sn-devel-184
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/netcmd/user.py | 3 |
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: |