summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-12-11 08:27:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:47:16 -0500
commitf4f1d37b4843f1c529d72a4d0bb3df71c0e47dcb (patch)
treebd61ba81bd031c2fa5bd4e10c12c955ad16893c6 /source4
parent737d59abc9bee520bd494a191e6a893125e1ebbb (diff)
downloadsamba-f4f1d37b4843f1c529d72a4d0bb3df71c0e47dcb.tar.gz
samba-f4f1d37b4843f1c529d72a4d0bb3df71c0e47dcb.tar.bz2
samba-f4f1d37b4843f1c529d72a4d0bb3df71c0e47dcb.zip
r12178: Make ldb_ildap work against localhost again, by setting the event
context into the ldb opaque. I'm sure this was done before, and must have been lost by some other change. Andrew Bartlett (This used to be commit dddedf13717e860bda0dadd8a1dfc4f891e355b5)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/db_wrap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/db_wrap.c b/source4/lib/db_wrap.c
index 482b6f17b5..974490f8b2 100644
--- a/source4/lib/db_wrap.c
+++ b/source4/lib/db_wrap.c
@@ -79,6 +79,10 @@ struct ldb_context *ldb_wrap_connect(TALLOC_CTX *mem_ctx,
the main event_context */
ev = event_context_find(ldb);
+ if (ldb_set_opaque(ldb, "EventContext", ev)) {
+ return NULL;
+ }
+
ret = ldb_register_samba_handlers(ldb);
if (ret == -1) {
talloc_free(ldb);