mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
libnet_dssync: add output filename and dns_domain_name to dssync struct.
Guenther
This commit is contained in:
parent
fa1976e23a
commit
c16e1820f8
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user