From 348bfa8462e6e94a264b2257be99cd95cc514860 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 5 Nov 2008 11:13:57 -0500 Subject: Use the local connection when getting a replication ID for winsync. We can't connect to the windows AD server to get a unique repliation ID. So first see if this master already has one and if not, get an id from the local DS. 469977 --- ipa-server/ipaserver/replication.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ipa-server/ipaserver/replication.py b/ipa-server/ipaserver/replication.py index 75dd416b1..d356c530d 100644 --- a/ipa-server/ipaserver/replication.py +++ b/ipa-server/ipaserver/replication.py @@ -388,7 +388,11 @@ class ReplicationManager: self.suffix = ipaldap.IPAdmin.normalizeDN(dsinstance.realm_to_suffix(realm_name)) - local_id = self._get_replica_id(self.conn, other_conn) + if not iswinsync: + local_id = self._get_replica_id(self.conn, other_conn) + else: + # there is no other side to get a replica ID from + local_id = self._get_replica_id(self.conn, self.conn) self.basic_replication_setup(self.conn, local_id) if not iswinsync: -- cgit