From 33c4fea4cdf7d5418423a81e53ce7b051500f287 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 12 Sep 2006 00:41:49 +0000 Subject: 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) --- source4/lib/ldb/ldb_ildap/ldb_ildap.c | 4 +--- 1 file changed, 1 insertion(+), 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; } -- cgit