summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-09-30 03:42:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:14 -0500
commit588abdba90c9abae3c8ecf5eb45764bbc447b229 (patch)
tree0079cbcbd780943582f1372c7ea421c2faafdf97 /source4/lib
parentbb77c2aa1e426dff40d8b7507bb562dcf9c779bd (diff)
downloadsamba-588abdba90c9abae3c8ecf5eb45764bbc447b229.tar.gz
samba-588abdba90c9abae3c8ecf5eb45764bbc447b229.tar.bz2
samba-588abdba90c9abae3c8ecf5eb45764bbc447b229.zip
r10641: fixed the error handling on search errors in the ildap backend
(This used to be commit e80d42933fe3cbc18cb229e47fffb9ca8068aca5)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/ldb_ildap/ldb_ildap.c1
1 files changed, 1 insertions, 0 deletions
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;
}