From 7d41afece70093e2debf2b57731c85ecc5009765 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 13 Jan 2010 11:45:05 +0100 Subject: s4:ldb/tests: do a "schemaUpdateNow" after creating a new attribute in ldap_schema.py It seems that windows doesn't need that. And we should think about a check for reloading the schema at the start of each "write" operation. metze --- source4/lib/ldb/tests/python/ldap_schema.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source4/lib') diff --git a/source4/lib/ldb/tests/python/ldap_schema.py b/source4/lib/ldb/tests/python/ldap_schema.py index 9e54732104..69b48cb867 100755 --- a/source4/lib/ldb/tests/python/ldap_schema.py +++ b/source4/lib/ldb/tests/python/ldap_schema.py @@ -139,6 +139,16 @@ systemOnly: FALSE self.assertEquals(res[0]["lDAPDisplayName"][0], attr_ldap_display_name) self.assertTrue("schemaIDGUID" in res[0]) + # Samba requires a "schemaUpdateNow" here. + # TODO: remove this when Samba is fixed + ldif = """ +dn: +changetype: modify +add: schemaUpdateNow +schemaUpdateNow: 1 +""" + self.ldb.modify_ldif(ldif) + class_name = "test-Class" + time.strftime("%s", time.gmtime()) class_ldap_display_name = class_name.replace("-", "") -- cgit