From 484fb303ff2b7e5becd2ad9502ae8645657a3ced Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 22 Aug 2011 17:29:54 +1000 Subject: s4-kcc: fixed _msdcs DNS name we need to base this DNS name on the forest DNS name for multi-domain support Pair-Programmed-With: Amitay Isaacs --- source4/dsdb/kcc/kcc_periodic.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source4/dsdb/kcc/kcc_periodic.c') diff --git a/source4/dsdb/kcc/kcc_periodic.c b/source4/dsdb/kcc/kcc_periodic.c index 8b74bab80a..2654f9f2d9 100644 --- a/source4/dsdb/kcc/kcc_periodic.c +++ b/source4/dsdb/kcc/kcc_periodic.c @@ -356,9 +356,7 @@ NTSTATUS kccsrv_simple_update(struct kccsrv_service *s, TALLOC_CTX *mem_ctx) r1 = &reps[count].ctr.ctr1; r1->other_info = talloc_zero(reps, struct repsFromTo1OtherInfo); - r1->other_info->dns_name = talloc_asprintf(r1->other_info, "%s._msdcs.%s", - GUID_string(mem_ctx, &ntds_guid), - lpcfg_dnsdomain(s->task->lp_ctx)); + r1->other_info->dns_name = samdb_ntds_msdcs_dns_name(s->samdb, reps, &ntds_guid); r1->source_dsa_obj_guid = ntds_guid; r1->source_dsa_invocation_id = invocation_id; r1->replica_flags = kccsrv_replica_flags(s); -- cgit