summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-08-03 09:15:11 +0200
committerStefan Metzmacher <metze@samba.org>2011-08-06 10:35:40 +0200
commit10752c5b5b039f4645412d81a751dbb926361c9e (patch)
treecb77996638c242666d66945faaa3e0f87c07fb43
parent593c9328fdddb27f92425f8eaba856c3a62e15cd (diff)
downloadsamba-10752c5b5b039f4645412d81a751dbb926361c9e.tar.gz
samba-10752c5b5b039f4645412d81a751dbb926361c9e.tar.bz2
samba-10752c5b5b039f4645412d81a751dbb926361c9e.zip
s4:netcmd/gpo.py: we don't need to set autogenerated attributes
metze
-rw-r--r--source4/scripting/python/samba/netcmd/gpo.py32
1 files changed, 11 insertions, 21 deletions
diff --git a/source4/scripting/python/samba/netcmd/gpo.py b/source4/scripting/python/samba/netcmd/gpo.py
index 94b1c61265..07842c29e6 100644
--- a/source4/scripting/python/samba/netcmd/gpo.py
+++ b/source4/scripting/python/samba/netcmd/gpo.py
@@ -857,17 +857,13 @@ class cmd_create(Command):
m = ldb.Message()
m.dn = ldb.Dn(self.samdb, gpo_dn.get_linearized())
- m['a01'] = ldb.MessageElement("top", ldb.FLAG_MOD_ADD, "objectClass")
- m['a02'] = ldb.MessageElement("container", ldb.FLAG_MOD_ADD, "objectClass")
- m['a03'] = ldb.MessageElement("groupPolicyContainer", ldb.FLAG_MOD_ADD, "objectClass")
- m['a04'] = ldb.MessageElement(displayname, ldb.FLAG_MOD_ADD, "displayName")
- m['a05'] = ldb.MessageElement(gpo, ldb.FLAG_MOD_ADD, "name")
- m['a06'] = ldb.MessageElement(gpo, ldb.FLAG_MOD_ADD, "CN")
- m['a07'] = ldb.MessageElement(unc_path, ldb.FLAG_MOD_ADD, "gPCFileSysPath")
- m['a08'] = ldb.MessageElement("0", ldb.FLAG_MOD_ADD, "flags")
- m['a09'] = ldb.MessageElement("0", ldb.FLAG_MOD_ADD, "versionNumber")
- m['a10'] = ldb.MessageElement("TRUE", ldb.FLAG_MOD_ADD, "showInAdvancedViewOnly")
- m['a11'] = ldb.MessageElement("2", ldb.FLAG_MOD_ADD, "gpcFunctionalityVersion")
+ m['a01'] = ldb.MessageElement("groupPolicyContainer", ldb.FLAG_MOD_ADD, "objectClass")
+ m['a02'] = ldb.MessageElement(displayname, ldb.FLAG_MOD_ADD, "displayName")
+ m['a03'] = ldb.MessageElement(unc_path, ldb.FLAG_MOD_ADD, "gPCFileSysPath")
+ m['a04'] = ldb.MessageElement("0", ldb.FLAG_MOD_ADD, "flags")
+ m['a05'] = ldb.MessageElement("0", ldb.FLAG_MOD_ADD, "versionNumber")
+ m['a06'] = ldb.MessageElement("TRUE", ldb.FLAG_MOD_ADD, "showInAdvancedViewOnly")
+ m['a07'] = ldb.MessageElement("2", ldb.FLAG_MOD_ADD, "gpcFunctionalityVersion")
try:
self.samdb.add(m)
except Exception, e:
@@ -879,11 +875,8 @@ class cmd_create(Command):
m = ldb.Message()
m.dn = ldb.Dn(self.samdb, child_dn.get_linearized())
- m['a01'] = ldb.MessageElement("top", ldb.FLAG_MOD_ADD, "objectClass")
- m['a02'] = ldb.MessageElement("container", ldb.FLAG_MOD_ADD, "objectClass")
- m['a03'] = ldb.MessageElement("TRUE", ldb.FLAG_MOD_ADD, "showInAdvancedViewOnly")
- m['a04'] = ldb.MessageElement("User", ldb.FLAG_MOD_ADD, "CN")
- m['a05'] = ldb.MessageElement("User", ldb.FLAG_MOD_ADD, "name")
+ m['a01'] = ldb.MessageElement("container", ldb.FLAG_MOD_ADD, "objectClass")
+ m['a02'] = ldb.MessageElement("TRUE", ldb.FLAG_MOD_ADD, "showInAdvancedViewOnly")
try:
self.samdb.add(m)
except Exception, e:
@@ -895,11 +888,8 @@ class cmd_create(Command):
m = ldb.Message()
m.dn = ldb.Dn(self.samdb, child_dn.get_linearized())
- m['a01'] = ldb.MessageElement("top", ldb.FLAG_MOD_ADD, "objectClass")
- m['a02'] = ldb.MessageElement("container", ldb.FLAG_MOD_ADD, "objectClass")
- m['a03'] = ldb.MessageElement("TRUE", ldb.FLAG_MOD_ADD, "showInAdvancedViewOnly")
- m['a04'] = ldb.MessageElement("Machine", ldb.FLAG_MOD_ADD, "CN")
- m['a05'] = ldb.MessageElement("Machine", ldb.FLAG_MOD_ADD, "name")
+ m['a01'] = ldb.MessageElement("container", ldb.FLAG_MOD_ADD, "objectClass")
+ m['a02'] = ldb.MessageElement("TRUE", ldb.FLAG_MOD_ADD, "showInAdvancedViewOnly")
try:
self.samdb.add(m)
except Exception, e: