Now that we pass down the event context, start removing calls to
[metze/samba/wip.git] / source / lib / ldb / ldb_ildap / ldb_ildap.c
index 6b50b2f5eba73a050f243d6d745c078a66a7cfb1..d1677032f0b98bb75e7a9d5e36850b8c4a4d5473 100644 (file)
@@ -758,15 +758,7 @@ static int ildb_connect(struct ldb_context *ldb, const char *url,
        module->private_data    = ildb;
        ildb->module            = module;
 
-       event_ctx = ldb_get_opaque(ldb, "EventContext");
-
-       /* FIXME: We must make the event context an explicit parameter, but we
-        * need to build the events library separately first. Hack a new event
-        * context so that CMD line utilities work until we have libevents for
-        * standalone builds ready */
-       if (event_ctx == NULL) {
-               event_ctx = event_context_init(NULL);
-       }
+       event_ctx = ldb_get_event_context(ldb);
 
        ildb->ldap = ldap4_new_connection(ildb, ldb_get_opaque(ldb, "loadparm"),
                                          event_ctx);