mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
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
This commit is contained in:
parent
33b54799a6
commit
3fda85276b
@ -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],
|
||||
|
Loading…
x
Reference in New Issue
Block a user