summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-09-12 00:41:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:25 -0500
commit33c4fea4cdf7d5418423a81e53ce7b051500f287 (patch)
treebd2039d9c19234a755153eaca5589c7cbacfb662
parent1be5dc983794fd46362fdf1e816bed0d27bc5ea3 (diff)
downloadsamba-33c4fea4cdf7d5418423a81e53ce7b051500f287.tar.gz
samba-33c4fea4cdf7d5418423a81e53ce7b051500f287.tar.bz2
samba-33c4fea4cdf7d5418423a81e53ce7b051500f287.zip
r18410: Reduce noise in the ldb_ildap backend. We regularly search for things
that don't exist, and this is not a cause for panic. Andrew Bartlett (This used to be commit c89e416d288d16de43ae93102ecfec588900e6c0)
-rw-r--r--source4/lib/ldb/ldb_ildap/ldb_ildap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/lib/ldb/ldb_ildap/ldb_ildap.c b/source4/lib/ldb/ldb_ildap/ldb_ildap.c
index f521425312..0f6391d7eb 100644
--- a/source4/lib/ldb/ldb_ildap/ldb_ildap.c
+++ b/source4/lib/ldb/ldb_ildap/ldb_ildap.c
@@ -124,8 +124,7 @@ static int ildb_map_error(struct ildb_private *ildb, NTSTATUS status)
if (NT_STATUS_IS_OK(status)) {
return LDB_SUCCESS;
}
- talloc_free(ildb->ldb->err_string);
- ildb->ldb->err_string = talloc_strdup(ildb, ldap_errstr(ildb->ldap, status));
+ ldb_set_errstring(ildb->ldb, ldap_errstr(ildb->ldap, status));
if (NT_STATUS_IS_LDAP(status)) {
return NT_STATUS_LDAP_CODE(status);
}
@@ -246,7 +245,6 @@ static void ildb_callback(struct ldap_request *req)
status = ldap_check_response(req->conn, &msg->r.GeneralResult);
if (!NT_STATUS_IS_OK(status)) {
- ldb_debug(ac->module->ldb, LDB_DEBUG_ERROR, "Error: %s\n" ,ldap_errstr(req->conn, status));
handle->status = ildb_map_error(ildb, status);
return;
}