The Samba-Bugzilla – Attachment 15548 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]
patch for 4.11
bug-14154-4-11.patch (text/plain), 1.15 KB, created by
Douglas Bagnall
on 2019-10-16 00:08:17 UTC
(
hide
)
Description:
patch for 4.11
Filename:
MIME Type:
Creator:
Douglas Bagnall
Created:
2019-10-16 00:08:17 UTC
Size:
1.15 KB
patch
obsolete
>From 47455cb948b91d3f389cc247f58f1ea6dcf7ccca 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 > >Signed-off-by: Heinz Hölzl <heinz.hoelzl@gvcc.net> >Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> >--- > 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