Hello,

This patch addresses ticket https://fedorahosted.org/freeipa/ticket/3868.

-- 
Regards,

Ana Krivokapic
Associate Software Engineer
FreeIPA team
Red Hat Inc.

From cdcb28b9b3b8e45db1b7a61f0df6f41e7a61450a Mon Sep 17 00:00:00 2001
From: Ana Krivokapic <[email protected]>
Date: Mon, 19 Aug 2013 17:45:31 +0200
Subject: [PATCH] Fix broken replication

Make sure the subject base parameter is correctly passed and used during the
creation of the DS instance on a replica.

https://fedorahosted.org/freeipa/ticket/3868
---
 install/tools/ipa-replica-install | 14 ++++++++++----
 ipaserver/install/dsinstance.py   |  4 ++--
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/install/tools/ipa-replica-install b/install/tools/ipa-replica-install
index 79f8a7ab48f75ac2d9cd5149df6eda4784b3854a..b9590ed990a17001c9ca75a8f26161ebce664b23 100755
--- a/install/tools/ipa-replica-install
+++ b/install/tools/ipa-replica-install
@@ -162,10 +162,16 @@ def install_replica_ds(config):
                        config.dir + "/dirsrv_pin.txt")
 
     ds = dsinstance.DsInstance()
-    ds.create_replica(config.realm_name,
-                      config.master_host_name, config.host_name,
-                      config.domain_name, config.dirman_password,
-                      pkcs12_info, ca_file = config.dir + "/ca.crt")
+    ds.create_replica(
+        config.realm_name,
+        config.master_host_name,
+        config.host_name,
+        config.domain_name,
+        config.dirman_password,
+        pkcs12_info,
+        ca_file=config.dir + "/ca.crt",
+        subject_base=config.subject_base
+    )
 
     return ds
 
diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py
index 8815757290efd0812bb551b4185a6afe91970211..a72559853e514659d36879811eb2d080e287b22d 100644
--- a/ipaserver/install/dsinstance.py
+++ b/ipaserver/install/dsinstance.py
@@ -275,7 +275,7 @@ def create_instance(self, realm_name, fqdn, domain_name,
 
     def create_replica(self, realm_name, master_fqdn, fqdn,
                        domain_name, dm_password, pkcs12_info=None,
-                       ca_file=None):
+                       ca_file=None, subject_base=None):
         # idstart and idmax are configured so that the range is seen as
         # depleted by the DNA plugin and the replica will go and get a
         # new range from the master.
@@ -284,7 +284,7 @@ def create_replica(self, realm_name, master_fqdn, fqdn,
         idmax = 1100
 
         self.init_info(
-            realm_name, fqdn, domain_name, dm_password, None,
+            realm_name, fqdn, domain_name, dm_password, subject_base,
             idstart, idmax, pkcs12_info, ca_file=ca_file)
         self.master_fqdn = master_fqdn
 
-- 
1.8.3.1

_______________________________________________
Freeipa-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to