Displaying 2 results from an estimated 2 matches for "2001c2001".
2020 Jan 03
3
samba-tool user syncpasswords 4.10 bug
Hi,
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: ", ...
2020 Jan 03
0
samba-tool user syncpasswords 4.10 bug
...ncpasswords" 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: "):
> > ---
>...