summaryrefslogtreecommitdiffstats
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-12-19 14:42:08 +1300
committerGarming Sam <garming@samba.org>2014-12-22 05:57:08 +0100
commiteabc177bf674a43f6b9442c8a89af0203befb3f1 (patch)
tree449f6f26c82b95fee0667dc8ea8b98f26876cdd0 /source4
parentbb886401e8b1c991684c0b9d855b976728e44f13 (diff)
downloadsamba-eabc177bf674a43f6b9442c8a89af0203befb3f1.tar.gz
samba-eabc177bf674a43f6b9442c8a89af0203befb3f1.tar.xz
samba-eabc177bf674a43f6b9442c8a89af0203befb3f1.zip
dsdb: Ignore errors from search in dns_notify module
This ensures the error messages are unchanged Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/dns_notify.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/dns_notify.c b/source4/dsdb/samdb/ldb_modules/dns_notify.c
index bee6a6e1d0..2481a41308 100644
--- a/source4/dsdb/samdb/ldb_modules/dns_notify.c
+++ b/source4/dsdb/samdb/ldb_modules/dns_notify.c
@@ -213,13 +213,12 @@ static int dns_notify_modify(struct ldb_module *module, struct ldb_request *req)
DSDB_SEARCH_REVEAL_INTERNALS |
DSDB_SEARCH_SHOW_DN_IN_STORAGE_FORMAT, req);
if (ret != LDB_SUCCESS) {
- ldb_asprintf_errstring(ldb_module_get_ctx(module),
- "%s: Failed to modify %s, because we failed to find it: %s\n",
- __func__,
- ldb_dn_get_linearized(dn),
- ldb_errstring(ldb_module_get_ctx(module)));
- talloc_free(tmp_ctx);
- return ret;
+ /*
+ * We want the give the caller the
+ * error from trying the actual
+ * request, below
+ */
+ break;
}
schema = dsdb_get_schema(ldb, req);
@@ -287,13 +286,12 @@ static int dns_notify_delete(struct ldb_module *module, struct ldb_request *req)
DSDB_SEARCH_REVEAL_INTERNALS |
DSDB_SEARCH_SHOW_DN_IN_STORAGE_FORMAT, req);
if (ret != LDB_SUCCESS) {
- ldb_asprintf_errstring(ldb_module_get_ctx(module),
- "%s: Failed to delete %s, because we failed to find it: %s\n",
- __func__,
- ldb_dn_get_linearized(old_dn),
- ldb_errstring(ldb_module_get_ctx(module)));
- talloc_free(tmp_ctx);
- return ret;
+ /*
+ * We want the give the caller the
+ * error from trying the actual
+ * request, below
+ */
+ break;
}
schema = dsdb_get_schema(ldb, req);