Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
struct netr_DELTA_ENUM_ARRAY *delta_enum_array = NULL;
struct netlogon_creds_CredentialState *creds = NULL;
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;
mem_ctx, &creds);
if (!NT_STATUS_IS_OK(status)) {
return status;
struct samsync_object *objects;
struct rpc_pipe_client *cli;
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;
struct messaging_context *msg_ctx;
const struct samsync_ops *ops;
ctx->mode = NET_SAMSYNC_MODE_DUMP;
ctx->cli = pipe_hnd;
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;
ctx->ops = &libnet_samsync_display_ops;
ctx->domain_name = domain_name;