diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-11-05 11:13:57 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-11-05 12:02:43 -0500 |
commit | 348bfa8462e6e94a264b2257be99cd95cc514860 (patch) | |
tree | 2f1355b55c9213a338ec471f6ee46d3378b142bd | |
parent | 3c0b288b6f2ceaef0d5a6d4fd57f8131791b8af6 (diff) | |
download | freeipa-348bfa8462e6e94a264b2257be99cd95cc514860.tar.gz freeipa-348bfa8462e6e94a264b2257be99cd95cc514860.tar.xz freeipa-348bfa8462e6e94a264b2257be99cd95cc514860.zip |
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.py | 6 |
1 files changed, 5 insertions, 1 deletions
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: |