summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
authorTim Beale <timbeale@catalyst.net.nz>2018-09-28 12:35:35 +1200
committerKarolin Seeger <kseeger@samba.org>2018-11-05 12:44:29 +0100
commit24a02a31b5c2506fbbdfeec4ab773e433088a108 (patch)
tree630a78f2b55154a1fd79f887f0cad308dfba0fe0 /selftest
parent5e4e3daad5a906127c332516508ce4fc3de1ab18 (diff)
downloadsamba-24a02a31b5c2506fbbdfeec4ab773e433088a108.tar.gz
tests: Add corner-case test: fromServer points to dead server
The fromServer attribute is slightly unique, in that it's a DN (similar to a one-way link), but it is also a mandatory attribute. Currently, if fromServer gets a bad value (i.e. a dead server that has been expunged), the DSDB rejects any attempts to modify the associated nTDSConnection object (regardless of whether or not you're actually changing the fromServer attribute). This patch adds a test-case that demonstrates how the DB can get into such a state. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13621 Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz> (cherry picked from commit dec3eda1f74f5bf7ea91c1be3d5dfd832e9672b9)
Diffstat (limited to 'selftest')
-rw-r--r--selftest/knownfail.d/attr_from_server5
1 files changed, 5 insertions, 0 deletions
diff --git a/selftest/knownfail.d/attr_from_server b/selftest/knownfail.d/attr_from_server
new file mode 100644
index 00000000000..fd4f6b92359
--- /dev/null
+++ b/selftest/knownfail.d/attr_from_server
@@ -0,0 +1,5 @@
+# test currently fails because once we have a fromServer attribute that points
+# to a non-existent object, the extended_dn DSDB module then suppresses that
+# attribute, which means the object is missing a mandatory attribute, thus
+# invalidating the schema
+^samba4.tests.attr_from_server.python\(ad_dc_ntvfs\).__main__.FromServerAttrTest.test_dangling_server_attr\(ad_dc_ntvfs:local\)