summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2012-06-12 12:23:52 -0700
committerMatthieu Patou <mat@samba.org>2012-06-23 10:48:13 +0200
commit763f9e82010e4ff1c74aea651e3244063bbf7fbf (patch)
tree0bd0091f8c81d0b9ce0df0ba70b167f252f96d3d
parentc00485b25888b06a71a79d7c7cbf43f5445d33e0 (diff)
downloadsamba-763f9e82010e4ff1c74aea651e3244063bbf7fbf.tar.gz
samba-763f9e82010e4ff1c74aea651e3244063bbf7fbf.tar.bz2
samba-763f9e82010e4ff1c74aea651e3244063bbf7fbf.zip
selftest: schema is not automatically reloaded now so if you modify it you have to reload it
Autobuild-User(master): Matthieu Patou <mat@samba.org> Autobuild-Date(master): Sat Jun 23 10:48:13 CEST 2012 on sn-devel-104
-rwxr-xr-xsource4/dsdb/tests/python/ldap_schema.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/dsdb/tests/python/ldap_schema.py b/source4/dsdb/tests/python/ldap_schema.py
index 5de0479ff1..d77f5537c9 100755
--- a/source4/dsdb/tests/python/ldap_schema.py
+++ b/source4/dsdb/tests/python/ldap_schema.py
@@ -94,6 +94,15 @@ isSingleValued: TRUE
systemOnly: FALSE
"""
self.ldb.add_ldif(ldif)
+ # We must do a schemaUpdateNow otherwise it's not 100% sure that the schema
+ # will contain the new attribute
+ ldif = """
+dn:
+changetype: modify
+add: schemaUpdateNow
+schemaUpdateNow: 1
+"""
+ self.ldb.modify_ldif(ldif)
# Search for created attribute
res = []