summaryrefslogtreecommitdiff
path: root/source4/rpc_server/drsuapi
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-08-24 13:51:49 +1000
committerAndrew Tridgell <tridge@samba.org>2011-08-25 07:39:39 +1000
commitdea4f3941b9c4006cc16b949ef5b6657eb009e14 (patch)
tree9c980e872e163d0da9c440be04b12731ae7478b6 /source4/rpc_server/drsuapi
parent085936926a446a289b88dfafcfe425c5dfe615b1 (diff)
downloadsamba-dea4f3941b9c4006cc16b949ef5b6657eb009e14.tar.gz
samba-dea4f3941b9c4006cc16b949ef5b6657eb009e14.tar.bz2
samba-dea4f3941b9c4006cc16b949ef5b6657eb009e14.zip
s4-drs: fixed msdcs DNS name in getncchanges
Diffstat (limited to 'source4/rpc_server/drsuapi')
-rw-r--r--source4/rpc_server/drsuapi/getncchanges.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/rpc_server/drsuapi/getncchanges.c b/source4/rpc_server/drsuapi/getncchanges.c
index 2abab787bc..ca24b3deec 100644
--- a/source4/rpc_server/drsuapi/getncchanges.c
+++ b/source4/rpc_server/drsuapi/getncchanges.c
@@ -1735,9 +1735,8 @@ WERROR dcesrv_drsuapi_DsGetNCChanges(struct dcesrv_call_state *dce_call, TALLOC_
DEBUG(3,("UpdateRefs on getncchanges for %s\n",
GUID_string(mem_ctx, &req10->destination_dsa_guid)));
ureq.naming_context = ncRoot;
- ureq.dest_dsa_dns_name = talloc_asprintf(mem_ctx, "%s._msdcs.%s",
- GUID_string(mem_ctx, &req10->destination_dsa_guid),
- lpcfg_dnsdomain(dce_call->conn->dce_ctx->lp_ctx));
+ ureq.dest_dsa_dns_name = samdb_ntds_msdcs_dns_name(b_state->sam_ctx, mem_ctx,
+ &req10->destination_dsa_guid);
if (!ureq.dest_dsa_dns_name) {
return WERR_NOMEM;
}