From f4f1d37b4843f1c529d72a4d0bb3df71c0e47dcb Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 11 Dec 2005 08:27:14 +0000 Subject: 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) --- source4/lib/db_wrap.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4') 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); -- cgit