summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-01-13 11:45:05 +0100
committerStefan Metzmacher <metze@samba.org>2010-01-13 16:03:52 +0100
commit7d41afece70093e2debf2b57731c85ecc5009765 (patch)
tree66e0cddb264144a415528caae12fa2a2b7398e18
parent92b87eb47405b884c0c736e28cd06e6e83d99a1e (diff)
downloadsamba-7d41afece70093e2debf2b57731c85ecc5009765.tar.gz
samba-7d41afece70093e2debf2b57731c85ecc5009765.tar.bz2
samba-7d41afece70093e2debf2b57731c85ecc5009765.zip
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
-rwxr-xr-xsource4/lib/ldb/tests/python/ldap_schema.py10
1 files changed, 10 insertions, 0 deletions
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("-", "")