From 27da394c442e98334726a7aae7da885c840be350 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 19 Jan 2011 09:53:59 -0500 Subject: Fix ipa-replica-manage regressions with winsync Avoids ipa-replica-manage to throw up errors. Fixes: https://fedorahosted.org/freeipa/ticket/807 --- ipaserver/install/replication.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ipaserver/install/replication.py') diff --git a/ipaserver/install/replication.py b/ipaserver/install/replication.py index 3c2f3c18..77ca0578 100644 --- a/ipaserver/install/replication.py +++ b/ipaserver/install/replication.py @@ -625,7 +625,8 @@ class ReplicationManager: # there is no other side to get a replica ID from # So we generate one locally replica_id = self._get_replica_id(self.conn, self.conn) - self.basic_replication_setup(self.conn, replica_id) + self.basic_replication_setup(self.conn, replica_id, + self.repl_man_dn, self.repl_man_passwd) #now add a passync user allowed to access the AD server self.add_passsync_user(self.conn, passsync_pw) @@ -638,8 +639,9 @@ class ReplicationManager: logging.info("Agreement is ready, starting replication . . .") #Finally start replication - return self.start_replication(self.conn, ad_conn, - self.repl_man_dn, self.repl_man_passwd) + ret = self.start_replication(ad_conn) + if ret != 0: + raise RuntimeError("Failed to start replication") def convert_to_gssapi_replication(self, r_hostname, r_binddn, r_bindpw): r_conn = ipaldap.IPAdmin(r_hostname, port=PORT, cacert=CACERT) -- cgit