From 22eb416d166e5772619518fc2adc26a6783abdb1 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 11 Aug 2014 17:31:53 +1200 Subject: [PATCH] repl: Specify the target realm in dreplsrv_get_target_principal() We know what realm we need to contact, so avoid trying to correctly get a referral from our KDC. Andrew Bartlett Change-Id: I154ff72f3176d581b64e0c67d4a9c5f1f76b7924 Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Tue Sep 30 14:58:50 CEST 2014 on sn-devel-104 --- source4/dsdb/repl/drepl_partitions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/dsdb/repl/drepl_partitions.c b/source4/dsdb/repl/drepl_partitions.c index 8c85ef6f2588..c822ba997a84 100644 --- a/source4/dsdb/repl/drepl_partitions.c +++ b/source4/dsdb/repl/drepl_partitions.c @@ -270,9 +270,9 @@ static NTSTATUS dreplsrv_get_target_principal(struct dreplsrv_service *s, if (dnsdomain != NULL) { *target_principal = talloc_asprintf(mem_ctx, - "E3514235-4B06-11D1-AB04-00C04FC2DCD2/%s/%s", + "E3514235-4B06-11D1-AB04-00C04FC2DCD2/%s/%s@%s", GUID_string(tmp_ctx, &rft->source_dsa_obj_guid), - dnsdomain); + dnsdomain, dnsdomain); } talloc_free(tmp_ctx); -- 2.34.1