selftest: schema is not automatically reloaded now so if you modify it you have to...
authorMatthieu Patou <mat@matws.net>
Tue, 12 Jun 2012 19:23:52 +0000 (12:23 -0700)
committerMatthieu Patou <mat@samba.org>
Sat, 23 Jun 2012 08:48:13 +0000 (10:48 +0200)
Autobuild-User(master): Matthieu Patou <mat@samba.org>
Autobuild-Date(master): Sat Jun 23 10:48:13 CEST 2012 on sn-devel-104

source4/dsdb/tests/python/ldap_schema.py

index 5de0479ff1a908f3a7c8837043ed92c17b0ee0ee..d77f5537c9a742f7930e1d9328bf58150bba9e31 100755 (executable)
@@ -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 = []