The Samba-Bugzilla – Attachment 15550 Details for
Bug 14154
samba-tool user syncpasswords sync_command_p.communicate python3 bytes- like object is required
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
4.11 patch with cherry-pick -x message
bug-14154-4-11-v2.patch (text/plain), 1.22 KB, created by
Douglas Bagnall
on 2019-10-16 00:27:31 UTC
(
hide
)
Description:
4.11 patch with cherry-pick -x message
Filename:
MIME Type:
Creator:
Douglas Bagnall
Created:
2019-10-16 00:27:31 UTC
Size:
1.22 KB
patch
obsolete
>From 869c920b02114e718a0c9c78baa8d51addba0ef9 Mon Sep 17 00:00:00 2001 >From: Heinz Hoelzl <heinz.hoelzl@gvcc.net> >Date: Thu, 10 Oct 2019 10:14:15 +1300 >Subject: [PATCH] samba-tool: py3 compatiblity in 'user syncpasswords --daemon' >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=14154 > >Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> >Signed-off-by: Heinz Hölzl <heinz.hoelzl@gvcc.net> >(cherry picked from commit 3923f929e5e70a045edfafa34eee3cb0331c2a5f) >--- > python/samba/netcmd/user.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/python/samba/netcmd/user.py b/python/samba/netcmd/user.py >index 121050a26e6..12287d3bf1c 100644 >--- a/python/samba/netcmd/user.py >+++ b/python/samba/netcmd/user.py >@@ -1998,7 +1998,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: >-- >2.20.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 14154
:
15519
|
15523
|
15546
|
15547
|
15548
|
15549
|
15550