lib/ldb-samba: Add comment dicouraging use of schemaUpgradeInProgress
authorAndrew Bartlett <abartlet@samba.org>
Fri, 19 Dec 2014 03:02:40 +0000 (16:02 +1300)
committerGarming Sam <garming@samba.org>
Mon, 22 Dec 2014 01:42:42 +0000 (02:42 +0100)
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Pair-programmed-with: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Garming Sam <garming@samba.org>
Autobuild-Date(master): Mon Dec 22 02:42:42 CET 2014 on sn-devel-104

lib/ldb-samba/tests/match_rules.py

index cb18248f169363f6f33f636c675bfb12c69aa7aa..6b31392df1dcb676ae96832f8cfae27e60ec2f13 100755 (executable)
@@ -209,6 +209,16 @@ class MatchRulesTests(samba.tests.TestCase):
         # |-> c1
         # |   |->c2
         # |   |  |->u1
+
+        #
+        # While appropriate for this test, this is NOT a good practice
+        # in general.  This is only done here because the alternative
+        # is to make a schema modification.
+        #
+        # IF/WHEN Samba protects this attribute better, this
+        # particular part of the test can be removed, as the same code
+        # is covered by the addressBookRoots2 case well enough.
+        #
         m = Message()
         m.dn = Dn(self.ldb, "")
         m["e1"] = MessageElement("1", FLAG_MOD_REPLACE, "schemaUpgradeInProgress")