Specify event_context to ldb_wrap_connect explicitly.
[samba.git] / source4 / winbind / idmap.c
index 0c729825dbb8a7bada0b79b2ce702dbed4fe9d7b..333a86445a244037ad5340e6c7ad1966b5e6c4b6 100644 (file)
@@ -158,6 +158,7 @@ static struct dom_sid *idmap_msg_get_dom_sid(TALLOC_CTX *mem_ctx,
  * \return allocated idmap_context on success, NULL on error
  */
 struct idmap_context *idmap_init(TALLOC_CTX *mem_ctx,
+                                struct event_context *ev_ctx,
                struct loadparm_context *lp_ctx)
 {
        struct idmap_context *idmap_ctx;
@@ -169,7 +170,7 @@ struct idmap_context *idmap_init(TALLOC_CTX *mem_ctx,
 
        idmap_ctx->lp_ctx = lp_ctx;
 
-       idmap_ctx->ldb_ctx = ldb_wrap_connect(mem_ctx, lp_ctx,
+       idmap_ctx->ldb_ctx = ldb_wrap_connect(mem_ctx, ev_ctx, lp_ctx,
                                              lp_idmap_url(lp_ctx),
                                              system_session(mem_ctx, lp_ctx),
                                              NULL, 0, NULL);