diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-08-24 13:51:49 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-08-25 07:39:39 +1000 |
commit | dea4f3941b9c4006cc16b949ef5b6657eb009e14 (patch) | |
tree | 9c980e872e163d0da9c440be04b12731ae7478b6 /source4 | |
parent | 085936926a446a289b88dfafcfe425c5dfe615b1 (diff) | |
download | samba-dea4f3941b9c4006cc16b949ef5b6657eb009e14.tar.gz |
s4-drs: fixed msdcs DNS name in getncchanges
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/drsuapi/getncchanges.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/rpc_server/drsuapi/getncchanges.c b/source4/rpc_server/drsuapi/getncchanges.c index 2abab787bc5..ca24b3deecf 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; } |