Displaying 2 results from an estimated 2 matches for "2008c2008".
Did you mean:
20080208
2020 Jan 03
3
samba-tool user syncpasswords 4.10 bug
...on 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 experienced Python programmer, there may be other solutions.
This bug seems to originate from the differences between Python2 a...
2020 Jan 03
0
samba-tool user syncpasswords 4.10 bug
...gt; 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 experienced Python programmer, there may be
> other solutions.
> >
>...