diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libnet/libnet_samsync.c | 2 | ||||
-rw-r--r-- | source3/libnet/libnet_samsync.h | 1 | ||||
-rw-r--r-- | source3/utils/net_rpc_samsync.c | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/source3/libnet/libnet_samsync.c b/source3/libnet/libnet_samsync.c index 02d3fc6ce7f..e7e1393fdc8 100644 --- a/source3/libnet/libnet_samsync.c +++ b/source3/libnet/libnet_samsync.c @@ -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; diff --git a/source3/libnet/libnet_samsync.h b/source3/libnet/libnet_samsync.h index efdbb372bd1..e1d66ec37f5 100644 --- a/source3/libnet/libnet_samsync.h +++ b/source3/libnet/libnet_samsync.h @@ -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; diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c index 772651f8b28..6377ad44698 100644 --- a/source3/utils/net_rpc_samsync.c +++ b/source3/utils/net_rpc_samsync.c @@ -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; |