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
This commit is contained in:
Rob Crittenden 2008-11-05 11:13:57 -05:00
parent 4ed44a06a1
commit c7c2cf0956

View File

@ -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: