]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
repl_metadata: Avoid silent skipping an object during DRS (due to RODC name collisions)
authorGarming Sam <garming@catalyst.net.nz>
Wed, 14 Feb 2018 00:32:24 +0000 (13:32 +1300)
committerGarming Sam <garming@samba.org>
Thu, 15 Feb 2018 04:42:03 +0000 (05:42 +0100)
No error code was being set in this case, and so, we would commit the
HWM and UDV without actually having all the updates.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13269

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/knownfail.d/rodc_repl
source4/dsdb/samdb/ldb_modules/repl_meta_data.c

index f6313c189801fb9c34e91489ac9bc76834a0aacb..bd5c04ea2cc985045b9979913df4a350e744ac0e 100644 (file)
@@ -1,2 +1 @@
-^samba4.drs.replica_sync_rodc.python.rodc..replica_sync_rodc.DrsReplicaSyncTestCase.test_ReplConflictsRODC.rodc
 ^samba4.drs.replica_sync_rodc.python.rodc..replica_sync_rodc.DrsReplicaSyncTestCase.test_ReplConflictsRODCRename.rodc
index 7646f942fcaec837e50d9a187bc7c7bf7020c625..84d898af4833bf605ca2262aaa29154163c756b2 100644 (file)
@@ -4932,6 +4932,7 @@ static int replmd_op_possible_conflict_callback(struct ldb_request *req, struct
                                       "Conflict adding object '%s' from incoming replication as we are read only for the partition.  \n"
                                       " - We must fail the operation until a master for this partition resolves the conflict",
                                       ldb_dn_get_linearized(conflict_dn));
+               ret = LDB_ERR_OPERATIONS_ERROR;
                goto failed;
        }