summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/replication.py
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2013-04-08 14:09:16 +0200
committerRob Crittenden <rcritten@redhat.com>2013-04-16 10:05:43 -0400
commitfe3ba33d263a985f12c6b7b1ec342cde2babd830 (patch)
tree8f9721727120ec0f6b8c28e9942cb752147eb514 /ipaserver/install/replication.py
parenta730b6e7b5e4eca754022fd3e0112ef597888c3b (diff)
downloadfreeipa-fe3ba33d263a985f12c6b7b1ec342cde2babd830.tar.gz
freeipa-fe3ba33d263a985f12c6b7b1ec342cde2babd830.tar.xz
freeipa-fe3ba33d263a985f12c6b7b1ec342cde2babd830.zip
Update only selected attributes for winsync agreement
Trying to insert nsDS5ReplicatedAttributeListTotal and nsds5ReplicaStripAttrs to winsync agreements caused upgrade errors. With this patch, these attributes are skipped for winsync agreements. Made find_ipa_replication_agreements() in replication.py more corresponding to find_replication_agreements. It returns list of entries instead of unicode strings now. https://fedorahosted.org/freeipa/ticket/3522
Diffstat (limited to 'ipaserver/install/replication.py')
-rw-r--r--ipaserver/install/replication.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/ipaserver/install/replication.py b/ipaserver/install/replication.py
index 64c3902a5..6269ba686 100644
--- a/ipaserver/install/replication.py
+++ b/ipaserver/install/replication.py
@@ -307,20 +307,15 @@ class ReplicationManager(object):
Return the list of hosts we have replication agreements.
"""
- res = []
-
filt = self.get_agreement_filter(IPA_REPLICA)
try:
ents = self.conn.get_entries(
DN(('cn', 'mapping tree'), ('cn', 'config')),
ldap.SCOPE_SUBTREE, filt)
except errors.NotFound:
- return res
-
- for ent in ents:
- res.append(ent.single_value('nsds5replicahost', None))
+ ents = []
- return res
+ return ents
def get_replication_agreement(self, hostname):
"""