[Samba] Can't use "samba-tool gpo backup" command
Csorba Róbert
csorbarobert at darabanth.com
Thu Feb 27 17:47:01 UTC 2020
Hi,
I would like to dump my GPO policies with the following command
"samba-tool gpo backup {LONG-ID-NUMBER}" but it didn't work.
System details:
- Tranquil IT's repo.
- Samba version 4.10.12
- CentOS Linux release 7.7.1908 (Core) with kernel
3.10.0-1062.12.1.el7.x86_64
Command result:
ERROR(<class 'UnicodeDecodeError'>): Error copying GPO from DC - 'utf-8'
codec can't decode byte 0xda in position 34: invalid continuation byte
File "/usr/lib64/python3.6/site-packages/samba/netcmd/gpo.py", line
1050, in run
backup_directory_remote_to_local(conn, sharepath, gpodir)
File "/usr/lib64/python3.6/site-packages/samba/netcmd/gpo.py", line
294, in backup_directory_remote_to_local
parser.parse(data)
File "/usr/lib64/python3.6/site-packages/samba/gp_parse/gp_ini.py",
line 40, in parse
self.ini_conf.readfp(StringIO(contents.decode(self.encoding)))
Yours Sincerely
Robert Csorba
More information about the samba
mailing list