I have provisionned a samba-ad-dc and joined two PC winsows 10 pro. I created users and I can login on the windows 10 pc with these users.
List GPO gaves
rasp:/ # samba-tool gpo listall
GPO : {31B2F340-016D-11D2-945F-00C04FB984F9}
display name : Default Domain Policy
path : \samdom.pce23.net\sysvol\samdom.pce23.net\Policies{31B2F340-016D-11D2-945F-00C04FB984F9}
dn : CN={31B2F340-016D-11D2-945F-00C04FB984F9},CN=Policies,CN=System,DC=samdom,DC=pce23,DC=net
version : 0
flags : NONE
GPO : {6AC1786C-016F-11D2-945F-00C04FB984F9}
display name : Default Domain Controllers Policy
path : \samdom.pce23.net\sysvol\samdom.pce23.net\Policies{6AC1786C-016F-11D2-945F-00C04FB984F9}
dn : CN={6AC1786C-016F-11D2-945F-00C04FB984F9},CN=Policies,CN=System,DC=samdom,DC=pce23,DC=net
version : 0
flags : NONE
rasp:/ #
When I try to create a new GPO via samba-tool I receive this error
rasp:~ # samba-tool gpo create “Global Message” -U Administrator
Password for [SAMDOM\Administrator]:
Using temporary directory /tmp/tmpew8pml0o (use --tmpdir to change)
ERROR(runtime): uncaught exception - (3221225506, ‘{Access Denied} A process has requested access to an object but has not been granted those access rights.’)
File “/usr/lib64/python3.10/site-packages/samba/netcmd/init.py”, line 185, in _run
return self.run(*args, **kwargs)
File “/usr/lib64/python3.10/site-packages/samba/netcmd/gpo.py”, line 1279, in run
conn.set_acl(sharepath, fs_sd, sio)
File “/usr/lib64/python3.10/site-packages/samba/samba3/libsmb_samba_internal.py”, line 128, in set_acl
self.set_sd(fnum, sd, sinfo)
If I try with RSAT on the windows PC I receive an error message “Can’t Create a File When It Already Exists”
And now listing the GPO gives
rasp:/ # samba-tool gpo listall
GPO : {31B2F340-016D-11D2-945F-00C04FB984F9}
display name : Default Domain Policy
path : \samdom.pce23.net\sysvol\samdom.pce23.net\Policies{31B2F340-016D-11D2-945F-00C04FB984F9}
dn : CN={31B2F340-016D-11D2-945F-00C04FB984F9},CN=Policies,CN=System,DC=samdom,DC=pce23,DC=net
version : 0
flags : NONE
GPO : {49BEC50A-00E2-4EE7-91EB-26C8D45701E2}
ERROR(<class ‘KeyError’>): uncaught exception - ‘No such element’
File “/usr/lib64/python3.10/site-packages/samba/netcmd/init.py”, line 185, in _run
return self.run(*args, **kwargs)
File “/usr/lib64/python3.10/site-packages/samba/netcmd/gpo.py”, line 477, in run
self.outf.write(“display name : %s\n” % m[‘displayName’][0])
So a new GPO {49BEC50A-00E2-4EE7-91EB-26C8D45701E2} was created but it this giving this error.
How can I solve this?
Many thanks in advance
Phi