search for: sync_command_p

Displaying 6 results from an estimated 6 matches for "sync_command_p".

2020 Jan 03
3
samba-tool user syncpasswords 4.10 bug
...i, When I use "samba-tool user syncpasswords" in Samba 4.10.11 (and earlier version of 4.10), I get a python exception coming from a place in /usr/lib/python3/dist-packages/samba/netcmd/user.py I could fix it with this patch: diff user.py.orig user.py 2001c2001 < reply = sync_command_p.communicate(input)[0] --- > reply = sync_command_p.communicate(input.encode('utf-8'))[0] 2008c2008 < if reply.startswith("DONE-EXIT: "): --- > if reply.startswith(bytes("DONE-EXIT: ", 'utf-8')): As I am not an experi...
2019 Oct 07
1
samba-tool user syncpasswords crashes with python3
I think, i found the error: in /usr/local/samba/lib/python3.6/site-packages/samba/netcmd/user.py on line 2001: ...snip def run_sync_command(dn, ldif): log_msg("Call Popen[%s] for %s\n" % (self.sync_command, dn)) sync_command_p = Popen(self.sync_command, stdin=PIPE, stdout=PIPE, stderr=STDOUT) res = sync_command_p.poll() assert res is None input = "%s" % (ldif)...
2019 Oct 04
2
samba-tool user syncpasswords crashes with python3
...n3.6/site- > > packages/samba/netcmd/user.py", line 2043, in handle_object > > run_sync_command(obj.dn, ldif) > > File "/usr/local/samba/lib/python3.6/site- > > packages/samba/netcmd/user.py", line 2001, in run_sync_command > > reply = bytes(sync_command_p.communicate(input)[0], encoding = > > 'utf-8') > It seems to working up to here > > File "/usr/lib/python3.6/subprocess.py", line 863, in > > communicate > > stdout, stderr = self._communicate(input, endtime, timeout) > > File "/usr...
2020 Jan 03
0
samba-tool user syncpasswords 4.10 bug
...earlier > > version of 4.10), I get a python exception coming from a place in > > /usr/lib/python3/dist-packages/samba/netcmd/user.py > > > > I could fix it with this patch: > > > > diff user.py.orig user.py > > 2001c2001 > > < reply = sync_command_p.communicate(input)[0] > > --- > >> reply = > sync_command_p.communicate(input.encode('utf-8'))[0] > > 2008c2008 > > < if reply.startswith("DONE-EXIT: "): > > --- > >> if reply.startswith(bytes(&...
2019 Oct 04
2
samba-tool user syncpasswords crashes with python3
...object(ri, r) File "/usr/local/samba/lib/python3.6/site- packages/samba/netcmd/user.py", line 2043, in handle_object run_sync_command(obj.dn, ldif) File "/usr/local/samba/lib/python3.6/site- packages/samba/netcmd/user.py", line 2001, in run_sync_command reply = bytes(sync_command_p.communicate(input)[0], encoding = 'utf-8') File "/usr/lib/python3.6/subprocess.py", line 863, in communicate stdout, stderr = self._communicate(input, endtime, timeout) File "/usr/lib/python3.6/subprocess.py", line 1519, in _communicate input_view = memoryvie...
2019 Oct 04
0
samba-tool user syncpasswords crashes with python3
...usr/local/samba/lib/python3.6/site- > packages/samba/netcmd/user.py", line 2043, in handle_object > run_sync_command(obj.dn, ldif) > File "/usr/local/samba/lib/python3.6/site- > packages/samba/netcmd/user.py", line 2001, in run_sync_command > reply = bytes(sync_command_p.communicate(input)[0], encoding = > 'utf-8') It seems to working up to here > File "/usr/lib/python3.6/subprocess.py", line 863, in communicate > stdout, stderr = self._communicate(input, endtime, timeout) > File "/usr/lib/python3.6/subprocess.py",...