diff options
Diffstat (limited to 'ipaserver')
-rw-r--r-- | ipaserver/install/replication.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ipaserver/install/replication.py b/ipaserver/install/replication.py index 000529f47..5474efdb8 100644 --- a/ipaserver/install/replication.py +++ b/ipaserver/install/replication.py @@ -117,7 +117,7 @@ class ReplicationManager: return retval - def find_replication_dns(self, conn): + def find_replication_agreements(self): """ The replication agreements are stored in cn="$SUFFIX",cn=mapping tree,cn=config @@ -130,10 +130,10 @@ class ReplicationManager: """ filt = "(|(objectclass=nsDSWindowsReplicationAgreement)(objectclass=nsds5ReplicationAgreement))" try: - ents = conn.search_s("cn=mapping tree,cn=config", ldap.SCOPE_SUBTREE, filt) + ents = self.conn.search_s("cn=mapping tree,cn=config", ldap.SCOPE_SUBTREE, filt) except ldap.NO_SUCH_OBJECT: - return [] - return [ent.dn for ent in ents] + ents = [] + return ents def find_ipa_replication_agreements(self): """ |