summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/replication.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-01-28 12:02:48 -0500
committerMartin Kosek <mkosek@redhat.com>2013-03-01 16:59:46 +0100
commit8f44811a9570e2a0dbc821b6ca48748a5d6eace7 (patch)
treeeac02c7f1ab13894ff2e47b4757534923e3fb6a6 /ipaserver/install/replication.py
parentd7bf70902b4285c40e33e426b9e16fbbbdbf8f8c (diff)
downloadfreeipa.git-8f44811a9570e2a0dbc821b6ca48748a5d6eace7.tar.gz
freeipa.git-8f44811a9570e2a0dbc821b6ca48748a5d6eace7.tar.xz
freeipa.git-8f44811a9570e2a0dbc821b6ca48748a5d6eace7.zip
Remove search_s and search_ext_s from IPAdmin
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
Diffstat (limited to 'ipaserver/install/replication.py')
-rw-r--r--ipaserver/install/replication.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ipaserver/install/replication.py b/ipaserver/install/replication.py
index 7d3f68b2..d97c5bdb 100644
--- a/ipaserver/install/replication.py
+++ b/ipaserver/install/replication.py
@@ -674,12 +674,14 @@ class ReplicationManager(object):
while (retries > 0 ):
root_logger.info('Getting ldap service principals for conversion: %s and %s' % (filter_a, filter_b))
try:
- a_entry = b.search_s(self.suffix, ldap.SCOPE_SUBTREE, filterstr=filter_a)
+ a_entry = b.get_entries(self.suffix, ldap.SCOPE_SUBTREE,
+ filter=filter_a)
except errors.NotFound:
pass
try:
- b_entry = a.search_s(self.suffix, ldap.SCOPE_SUBTREE, filterstr=filter_b)
+ b_entry = a.get_entries(self.suffix, ldap.SCOPE_SUBTREE,
+ filter=filter_b)
except errors.NotFound:
pass