We don’t care if a forward link is missing from an object being renamed
during the deletion process.
Nothing yet checks the value returned from this function, so there
should be no change in behaviour.
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
}
if (exact == NULL) {
- ldb_asprintf_errstring(
- ldb,
- "parsed_dn_find could not find %s link for %s",
- el->name,
- ldb_dn_get_linearized(msg->dn));
+ /*
+ * Our only caller doesn’t want to know about errors finding a
+ * forward link for which we have a backlink — in particular,
+ * during the tombstoning of an object, the forward links have
+ * already been removed when this routine is called by
+ * dsdb_module_rename() inside replmd_delete_internals().
+ */
talloc_free(tmp_ctx);
- return LDB_ERR_OPERATIONS_ERROR;
+ return LDB_SUCCESS;
}
is_plain_dn = strcmp(syntax_oid, LDB_SYNTAX_DN) == 0;