diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libnet/libnet_dssync.c | 6 | ||||
-rw-r--r-- | source3/libnet/libnet_dssync.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/source3/libnet/libnet_dssync.c b/source3/libnet/libnet_dssync.c index 1fb30d796a..b596da816a 100644 --- a/source3/libnet/libnet_dssync.c +++ b/source3/libnet/libnet_dssync.c @@ -298,6 +298,12 @@ static NTSTATUS libnet_dssync_lookup_nc(TALLOC_CTX *mem_ctx, ctx->nc_dn = talloc_strdup(mem_ctx, ctr.ctr1->array[0].result_name); NT_STATUS_HAVE_NO_MEMORY(ctx->nc_dn); + if (!ctx->dns_domain_name) { + ctx->dns_domain_name = talloc_strdup_upper(mem_ctx, + ctr.ctr1->array[0].dns_domain_name); + NT_STATUS_HAVE_NO_MEMORY(ctx->dns_domain_name); + } + return NT_STATUS_OK; } diff --git a/source3/libnet/libnet_dssync.h b/source3/libnet/libnet_dssync.h index 2fe7718f07..0705996976 100644 --- a/source3/libnet/libnet_dssync.h +++ b/source3/libnet/libnet_dssync.h @@ -26,10 +26,12 @@ typedef NTSTATUS (*dssync_processing_fn_t)(TALLOC_CTX *, struct dssync_context { const char *domain_name; + const char *dns_domain_name; struct rpc_pipe_client *cli; const char *nc_dn; struct policy_handle bind_handle; DATA_BLOB session_key; + const char *output_filename; dssync_processing_fn_t processing_fn; |