summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-11-05 11:13:57 -0500
committerRob Crittenden <rcritten@redhat.com>2008-11-05 12:02:43 -0500
commit348bfa8462e6e94a264b2257be99cd95cc514860 (patch)
tree2f1355b55c9213a338ec471f6ee46d3378b142bd
parent3c0b288b6f2ceaef0d5a6d4fd57f8131791b8af6 (diff)
downloadfreeipa-348bfa8462e6e94a264b2257be99cd95cc514860.zip
freeipa-348bfa8462e6e94a264b2257be99cd95cc514860.tar.gz
freeipa-348bfa8462e6e94a264b2257be99cd95cc514860.tar.xz
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
-rw-r--r--ipa-server/ipaserver/replication.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ipa-server/ipaserver/replication.py b/ipa-server/ipaserver/replication.py
index 75dd416..d356c53 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: