From 94a59b781ccc5a552a9141484740255977db4637 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 20 Dec 2010 21:26:35 +1100 Subject: s4-auth Remove event context from privilage database handling These local TDB operations can quite safely be handled in a new/nested event context, rather than using the main event context. Andrew Bartlett --- source4/libnet/libnet_samsync_ldb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4/libnet/libnet_samsync_ldb.c') diff --git a/source4/libnet/libnet_samsync_ldb.c b/source4/libnet/libnet_samsync_ldb.c index 07e085edb1..b821160525 100644 --- a/source4/libnet/libnet_samsync_ldb.c +++ b/source4/libnet/libnet_samsync_ldb.c @@ -1189,7 +1189,7 @@ static NTSTATUS libnet_samsync_ldb_init(TALLOC_CTX *mem_ctx, ldap_url = talloc_asprintf(state, "ldap://%s", server); state->remote_ldb = ldb_wrap_connect(mem_ctx, - state->samsync_state->machine_net_ctx->event_ctx, + NULL, state->samsync_state->machine_net_ctx->lp_ctx, ldap_url, NULL, state->samsync_state->machine_net_ctx->cred, @@ -1227,7 +1227,6 @@ NTSTATUS libnet_samsync_ldb(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, str } state->pdb = privilege_connect(mem_ctx, - ctx->event_ctx, ctx->lp_ctx); if (!state->pdb) { return NT_STATUS_INTERNAL_DB_ERROR; -- cgit