repl: Specify the target realm in dreplsrv_get_target_principal()
authorAndrew Bartlett <abartlet@samba.org>
Mon, 11 Aug 2014 05:31:53 +0000 (17:31 +1200)
committerStefan Metzmacher <metze@samba.org>
Tue, 30 Sep 2014 12:58:50 +0000 (14:58 +0200)
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 <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Sep 30 14:58:50 CEST 2014 on sn-devel-104

source4/dsdb/repl/drepl_partitions.c

index 8c85ef6f2588d04394754aa5c353b89cde3585c9..c822ba997a84ed6a646093a3cf2b422e7d47f313 100644 (file)
@@ -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);