summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-26 23:24:25 +0200
committerGünther Deschner <gd@samba.org>2008-06-27 02:01:03 +0200
commite58b2db024293b0d76441e19e0afd4734b550aa8 (patch)
treed6f2fc80fd8639aca14c214dd103453988f75196 /source3
parent92df9ae39329a2c442c55d20ba9015fe23b071e3 (diff)
downloadsamba-e58b2db024293b0d76441e19e0afd4734b550aa8.tar.gz
samba-e58b2db024293b0d76441e19e0afd4734b550aa8.tar.bz2
samba-e58b2db024293b0d76441e19e0afd4734b550aa8.zip
libnet_dssync: add output filename and dns_domain_name to dssync struct.
Guenther (This used to be commit c16e1820f86f105853aa855eda322ba6cbff3a84)
Diffstat (limited to 'source3')
-rw-r--r--source3/libnet/libnet_dssync.c6
-rw-r--r--source3/libnet/libnet_dssync.h2
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;