r12178: Make ldb_ildap work against localhost again, by setting the event
authorAndrew Bartlett <abartlet@samba.org>
Sun, 11 Dec 2005 08:27:14 +0000 (08:27 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:47:16 +0000 (13:47 -0500)
context into the ldb opaque.  I'm sure this was done before, and must
have been lost by some other change.

Andrew Bartlett

source/lib/db_wrap.c

index 482b6f17b53c604a1e9e62529b9c888c3d090051..974490f8b2a99e121728fbde05e08a1a5bc7fdcd 100644 (file)
@@ -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);