diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-07 02:37:04 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:48:41 +0100 |
commit | 4c4323009fa83f00ed319de59a3aad48fcd65994 (patch) | |
tree | 4eb290c8e7881e1b9b9f77f8401531443aa81bf4 /source4/winbind | |
parent | 485b24fc113fe64507e20b9079948832d63194a3 (diff) | |
download | samba-4c4323009fa83f00ed319de59a3aad48fcd65994.tar.gz samba-4c4323009fa83f00ed319de59a3aad48fcd65994.tar.bz2 samba-4c4323009fa83f00ed319de59a3aad48fcd65994.zip |
r26327: Explicit loadparm_context for RPC client functions.
(This used to be commit eeb2251d22b3d6e0379444a73af69d1014692b07)
Diffstat (limited to 'source4/winbind')
-rw-r--r-- | source4/winbind/wb_connect_sam.c | 3 | ||||
-rw-r--r-- | source4/winbind/wb_init_domain.c | 15 |
2 files changed, 12 insertions, 6 deletions
diff --git a/source4/winbind/wb_connect_sam.c b/source4/winbind/wb_connect_sam.c index 49861b3c33..efd715b164 100644 --- a/source4/winbind/wb_connect_sam.c +++ b/source4/winbind/wb_connect_sam.c @@ -70,7 +70,8 @@ struct composite_context *wb_connect_samr_send(TALLOC_CTX *mem_ctx, ctx = dcerpc_secondary_auth_connection_send(domain->netlogon_pipe, domain->samr_binding, &ndr_table_samr, - domain->libnet_ctx->cred); + domain->libnet_ctx->cred, + domain->libnet_ctx->lp_ctx); composite_continue(state->ctx, ctx, connect_samr_recv_pipe, state); return result; diff --git a/source4/winbind/wb_init_domain.c b/source4/winbind/wb_init_domain.c index fbc2c0c80a..c3a2ed6a69 100644 --- a/source4/winbind/wb_init_domain.c +++ b/source4/winbind/wb_init_domain.c @@ -101,7 +101,8 @@ static struct dcerpc_binding *init_domain_binding(struct init_domain_state *stat binding->host = state->domain->dc_address; /* This shouldn't make a network call, as the mappings for named pipes are well known */ - status = dcerpc_epm_map_binding(binding, binding, table, state->service->task->event_ctx); + status = dcerpc_epm_map_binding(binding, binding, table, state->service->task->event_ctx, + state->service->task->lp_ctx); if (!NT_STATUS_IS_OK(status)) { return NULL; } @@ -143,7 +144,8 @@ struct composite_context *wb_init_domain_send(TALLOC_CTX *mem_ctx, state->domain->dc_name = dom_info->dcs[0].name; state->domain->dc_address = dom_info->dcs[0].address; - state->domain->libnet_ctx = libnet_context_init(service->task->event_ctx); + state->domain->libnet_ctx = libnet_context_init(service->task->event_ctx, + service->task->lp_ctx); /* Create a credentials structure */ state->domain->libnet_ctx->cred = cli_credentials_init(state->domain); @@ -182,7 +184,8 @@ struct composite_context *wb_init_domain_send(TALLOC_CTX *mem_ctx, ctx = dcerpc_pipe_connect_b_send(state, state->domain->netlogon_binding, &ndr_table_netlogon, state->domain->libnet_ctx->cred, - service->task->event_ctx); + service->task->event_ctx, + service->task->lp_ctx); if (composite_nomem(ctx, state->ctx)) { goto failed; @@ -229,7 +232,8 @@ static void init_domain_recv_netlogonpipe(struct composite_context *ctx) ctx = dcerpc_secondary_auth_connection_send(state->domain->netlogon_pipe, state->domain->lsa_binding, &ndr_table_lsarpc, - state->domain->libnet_ctx->cred + state->domain->libnet_ctx->cred, + state->domain->libnet_ctx->lp_ctx ); composite_continue(state->ctx, ctx, init_domain_recv_lsa_pipe, state); } @@ -255,7 +259,8 @@ static bool retry_with_schannel(struct init_domain_state *state, ctx = dcerpc_secondary_auth_connection_send(state->domain->netlogon_pipe, binding, table, - state->domain->libnet_ctx->cred); + state->domain->libnet_ctx->cred, + state->domain->libnet_ctx->lp_ctx); composite_continue(state->ctx, ctx, continuation, state); return true; } else { |