summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2013-05-06 00:58:28 -0700
committerAndrew Bartlett <abartlet@samba.org>2013-05-14 07:07:18 +0200
commit3fda85276b9a3b3df6c5f1341dd586606deacfb1 (patch)
treee8e5c935ae644c741e30474756d6a3cfc83a7f6d /source4/torture
parent33b54799a61eb6873eaeea2e7853f1314d8e6eee (diff)
downloadsamba-3fda85276b9a3b3df6c5f1341dd586606deacfb1.tar.gz
samba-3fda85276b9a3b3df6c5f1341dd586606deacfb1.tar.bz2
samba-3fda85276b9a3b3df6c5f1341dd586606deacfb1.zip
selftests-drs: make our generated class subclass of classschema
Without this change objectclass=["top", "classSchema", "Foobar"] will not be sorted correctly and will generated an error saying that class Foobar is unreleated to classSchema (which is not true). It's mimicing what other classes of the default schema are doing (ie. contact) Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue May 14 07:07:19 CEST 2013 on sn-devel-104
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/drs/python/repl_schema.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/drs/python/repl_schema.py b/source4/torture/drs/python/repl_schema.py
index cbed6400d6..aefeadb115 100644
--- a/source4/torture/drs/python/repl_schema.py
+++ b/source4/torture/drs/python/repl_schema.py
@@ -174,7 +174,8 @@ class DrsReplSchemaTestCase(drs_base.DrsBaseTestCase):
# add a base classSchema class so we can use our new
# attribute in class definition in a sibling class
(c_ldn, c_dn) = self._schema_new_class(self.ldb_dc1, "cls-A",
- {"systemMayContain": a_ldn})
+ {"systemMayContain": a_ldn,
+ "subClassOf": "classSchema"})
# add new classSchema object with value for a_ldb attribute
(c_ldn, c_dn) = self._schema_new_class(self.ldb_dc1, "cls-B",
{"objectClass": ["top", "classSchema", c_ldn],