s4:samba-tool/gpo: fix the operation order when creating gpos
commitd48d0c5bbf70394dfc6ab44ef124582fd836695f
authorStefan Metzmacher <metze@samba.org>
Thu, 29 Nov 2012 08:31:12 +0000 (29 09:31 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 3 Dec 2012 07:46:45 +0000 (3 08:46 +0100)
tree880ab852b36be79b1aca9cfa29ef81dd72cf6ee3
parentdde7eb0d82e9b980c9b08fb4590b7e77bda0c76b
s4:samba-tool/gpo: fix the operation order when creating gpos

We should do it like the windows GUI.

1. create the LDAP objects
2. query the security_descriptor of the groupPolicyContainer
3. create the gPCFileSysPath via smb
4. set the security_descriptor of gPCFileSysPath
5. copy the files and directories into gPCFileSysPath
6. modify the groupPolicyContainer and link gPCFileSysPath

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source4/scripting/python/samba/netcmd/gpo.py