summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-20 23:42:28 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-20 23:43:33 +1000
commitb4b43fcb4c3e8b046489ea03b70f7c0a77bc5065 (patch)
tree21e04c2eb293c789d87f892bc3c951bfb46b6db0 /source4/rpc_server
parent5e69259671d317aebaae54ec9adc30e58f70076f (diff)
downloadsamba-b4b43fcb4c3e8b046489ea03b70f7c0a77bc5065.tar.gz
samba-b4b43fcb4c3e8b046489ea03b70f7c0a77bc5065.tar.bz2
samba-b4b43fcb4c3e8b046489ea03b70f7c0a77bc5065.zip
s4-netlogon: fixed dc_unc and dc_address_type
These are needed for dcpromo from w2k8r2
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/netlogon/dcerpc_netlogon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c
index b920c13ae1..d7aa4252d2 100644
--- a/source4/rpc_server/netlogon/dcerpc_netlogon.c
+++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c
@@ -1521,9 +1521,11 @@ static WERROR dcesrv_netr_DsRGetDCNameEx2(struct dcesrv_call_state *dce_call,
info = talloc(mem_ctx, struct netr_DsRGetDCNameInfo);
W_ERROR_HAVE_NO_MEMORY(info);
- info->dc_unc = response.data.nt5_ex.pdc_dns_name;
+ info->dc_unc = talloc_asprintf(mem_ctx, "\\\\%s",
+ response.data.nt5_ex.pdc_dns_name);
info->dc_address = talloc_asprintf(mem_ctx, "\\\\%s",
response.data.nt5_ex.sockaddr.pdc_ip);
+ info->dc_address_type = DS_ADDRESS_TYPE_INET;
W_ERROR_HAVE_NO_MEMORY(info->dc_address);
info->domain_guid = response.data.nt5_ex.domain_uuid;
info->domain_name = response.data.nt5_ex.dns_domain;