From 588abdba90c9abae3c8ecf5eb45764bbc447b229 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 30 Sep 2005 03:42:07 +0000 Subject: r10641: fixed the error handling on search errors in the ildap backend (This used to be commit e80d42933fe3cbc18cb229e47fffb9ca8068aca5) --- source4/lib/ldb/ldb_ildap/ldb_ildap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/lib/ldb/ldb_ildap') diff --git a/source4/lib/ldb/ldb_ildap/ldb_ildap.c b/source4/lib/ldb/ldb_ildap/ldb_ildap.c index ffb812acd0..499ce054d0 100644 --- a/source4/lib/ldb/ldb_ildap/ldb_ildap.c +++ b/source4/lib/ldb/ldb_ildap/ldb_ildap.c @@ -166,6 +166,7 @@ static int ildb_search(struct ldb_module *module, const struct ldb_dn *base, 0, &ldapres); talloc_free(search_base); if (!NT_STATUS_IS_OK(ildb->last_rc)) { + ldb_set_errstring(module, talloc_strdup(module, ldap_errstr(ildb->ldap, ildb->last_rc))); return -1; } -- cgit