[Samba] Fwd: Can't use "samba-tool gpo backup" command

Csorba Róbert csorbarobert at darabanth.com
Tue Mar 3 15:32:02 UTC 2020


Hi,

Do you have any idea what cause the problem?

I use the following command syntax.

samba-tool gpo backup {D2E75702-3EDB-4770-8ADD-800EFA0949AE} --tmpdir /tmp


-------- Továbbított üzenet --------
Tárgy: 	Can't use "samba-tool gpo backup" command
Dátum: 	Thu, 27 Feb 2020 18:47:01 +0100
Feladó: 	Csorba Róbert <csorbarobert at darabanth.com>
Címzett: 	samba at lists.samba.org



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