From b4b43fcb4c3e8b046489ea03b70f7c0a77bc5065 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 20 Apr 2010 23:42:28 +1000 Subject: s4-netlogon: fixed dc_unc and dc_address_type These are needed for dcpromo from w2k8r2 --- source4/rpc_server/netlogon/dcerpc_netlogon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit