1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

s3:libnet: pass in struct netlogon_creds_cli_context from the caller.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Stefan Metzmacher 2013-09-16 19:19:39 +02:00
parent a8ecebe3e8
commit 77defb175e
3 changed files with 3 additions and 1 deletions

View File

@ -216,7 +216,7 @@ static NTSTATUS libnet_samsync_delta(TALLOC_CTX *mem_ctx,
struct netr_DELTA_ENUM_ARRAY *delta_enum_array = NULL;
struct netlogon_creds_CredentialState *creds = NULL;
status = netlogon_creds_cli_lock(ctx->cli->netlogon_creds,
status = netlogon_creds_cli_lock(ctx->netlogon_creds,
mem_ctx, &creds);
if (!NT_STATUS_IS_OK(status)) {
return status;

View File

@ -75,6 +75,7 @@ struct samsync_context {
struct samsync_object *objects;
struct rpc_pipe_client *cli;
struct netlogon_creds_cli_context *netlogon_creds;
struct messaging_context *msg_ctx;
const struct samsync_ops *ops;

View File

@ -129,6 +129,7 @@ NTSTATUS rpc_samdump_internals(struct net_context *c,
ctx->mode = NET_SAMSYNC_MODE_DUMP;
ctx->cli = pipe_hnd;
ctx->netlogon_creds = c->netlogon_creds;
ctx->ops = &libnet_samsync_display_ops;
ctx->domain_name = domain_name;