[Samba] GPO created via samba-tool don't Copy or Backup in RSAT (invalid directory)

Klaas TJEBBES klaas.tjebbes at ac-dijon.fr
Wed May 19 10:30:34 UTC 2021


I am facing a problem with GPO managing on the Samba side.

When I create a GPO named "test" using the RSAT on Windows, and make a 
modification in it (I did : Computer Configuration -> Administrative 
Templates -> System -> Logon “Always Wait for the Network at Computer 
Startup and Logon” to “Enabled”). I CAN Copy and Backup this GPO in RSAT 
(right clic on GPO and "Copy", right clic on "Group Policy Objects" and 

On the samba server, using "samba-tool gpo backup/restore", I backup and 
restore this "test" GPO under another name, "blabla" for example.
  samba-tool gpo backup {XXXXX-YYYYYY-ZZZZZZ-AAAAA-BBBB}
  samba-tool gpo restore blabla /tmp/...

Back in the RSAT on Windows, this new "blabla" GPO can NOT be Copied or 
Backuped. The error is "invalid directory".


On the samba server, I go in the "test" GPO directory (in 
"/home/sysvol/domseth.ac-test.fr/Policies/{ID_TEST_GPO}") and do :
  getfattr -d -n user.DOSATTRIB -R . > ../test.attrs

Then I go in the directory of the "blabla" GPO and do :
   setfattr --restore=../test.attrs

Then I return on the RSAT and now I can successful Copy and Backup 
"blabla" GPO.

Why this problem ? Am I doing something wrong ?

root at dc1:~# dpkg -l |grep samba
ii  python3-samba                        2:4.11.6+dfsg-0ubuntu1.6 
amd64        Python 3 bindings for Samba
ii  samba                                2:4.11.6+dfsg-0ubuntu1.6 
amd64        SMB/CIFS file, print, and login server for Unix
ii  samba-common                         2:4.11.6+dfsg-0ubuntu1.6    all 
          common files used by both the Samba server and client
ii  samba-common-bin                     2:4.11.6+dfsg-0ubuntu1.6 
amd64        Samba common files used by both the server and the client
ii  samba-dsdb-modules:amd64             2:4.11.6+dfsg-0ubuntu1.6 
amd64        Samba Directory Services Database
ii  samba-libs:amd64                     2:4.11.6+dfsg-0ubuntu1.6 
amd64        Samba core libraries
ii  samba-vfs-modules:amd64              2:4.11.6+dfsg-0ubuntu1.6 
amd64        Samba Virtual FileSystem plugins

root at dc1:~# cat /etc/lsb-release

And Windows 10.20H2.

Thank you, regards,

More information about the samba mailing list