Created attachment 15519 [details] logfile in /usr/local/samba/lib/python3.6/site-packages/samba/netcmd/user.py on line 2001 is called: reply = sync_command_p.communicate(input)[0] The type of input is 'str', but in python3.6 the type of input must by bytes. see: https://docs.python.org/3.6/library/asyncio-subprocess.html As a result of this /usr/local/samba/bin/samba-tool user syncpasswords --daemon crashes. converting the stream to bytes solves the problem: reply = sync_command_p.communicate(input.encode())[0].decode() As attachment you get the logfile
Created attachment 15523 [details] patch for master Thanks Heinz. I have formatted your fix as a patch for master. The patch will apply on 4.11, but we may need to do some more fiddling for 4.10 (because it also needs to run with Python 2.7). There are two things you need to do: * agree to have a 'Signed-off-by: <you>' line above the Reviewed-by. * consider whether you need to do a DCO as per the Samba copyright page: https://www.samba.org/samba/devel/copyright-policy.html
i agree to have a 'Signed-off-by: Heinz Hölzl <heinz.hoelzl@gvcc.net>' line above the Reviewed-by. i do not need to do a DCO.
Created attachment 15546 [details] patch for master
Created attachment 15547 [details] patch for 4.10 the 4.10 patch is slightly inelegant because it has to deal with python 2.
Created attachment 15548 [details] patch for 4.11
Created attachment 15549 [details] 4.10 patch with (backported from...)
Created attachment 15550 [details] 4.11 patch with cherry-pick -x message
Comment on attachment 15549 [details] 4.10 patch with (backported from...) oops, not in master yet
Comment on attachment 15546 [details] patch for master I tried the patch and it's working. Selftest is also ok: https://gitlab.com/samba-team/devel/samba/pipelines/90240653 I've added my RB, pushed it to master and the autobuild is currently running.
*** Bug 14231 has been marked as a duplicate of this bug. ***