From: Matthieu Patou Date: Tue, 12 Jun 2012 19:23:52 +0000 (-0700) Subject: selftest: schema is not automatically reloaded now so if you modify it you have to... X-Git-Tag: samba-4.0.0beta3~204 X-Git-Url: http://git.samba.org/?p=ddiss%2Fsamba.git;a=commitdiff_plain;h=763f9e82010e4ff1c74aea651e3244063bbf7fbf selftest: schema is not automatically reloaded now so if you modify it you have to reload it Autobuild-User(master): Matthieu Patou Autobuild-Date(master): Sat Jun 23 10:48:13 CEST 2012 on sn-devel-104 --- diff --git a/source4/dsdb/tests/python/ldap_schema.py b/source4/dsdb/tests/python/ldap_schema.py index 5de0479ff1a..d77f5537c9a 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 = []