From e58b2db024293b0d76441e19e0afd4734b550aa8 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 26 Jun 2008 23:24:25 +0200 Subject: libnet_dssync: add output filename and dns_domain_name to dssync struct. Guenther (This used to be commit c16e1820f86f105853aa855eda322ba6cbff3a84) --- source3/libnet/libnet_dssync.c | 6 ++++++ source3/libnet/libnet_dssync.h | 2 ++ 2 files changed, 8 insertions(+) (limited to 'source3') 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; -- cgit