summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/bindinstance.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/bindinstance.py
parentd7bf70902b4285c40e33e426b9e16fbbbdbf8f8c (diff)
downloadfreeipa-8f44811a9570e2a0dbc821b6ca48748a5d6eace7.tar.gz
freeipa-8f44811a9570e2a0dbc821b6ca48748a5d6eace7.tar.xz
freeipa-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/bindinstance.py')
-rw-r--r--ipaserver/install/bindinstance.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py
index 123f559aa..9c9ad6489 100644
--- a/ipaserver/install/bindinstance.py
+++ b/ipaserver/install/bindinstance.py
@@ -167,8 +167,8 @@ def dns_container_exists(fqdn, suffix, dm_password=None, ldapi=False, realm=None
"""
assert isinstance(dn, DN)
try:
- conn.search_ext_s(dn, ldap.SCOPE_BASE)
- except ldap.NO_SUCH_OBJECT:
+ conn.get_entry(dn)
+ except errors.NotFound:
return False
else:
return True