From 38b8532696b4c969e437452386b7019d1266a69c Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 24 Sep 2010 15:27:02 -0400 Subject: Handle search_ext() returning ldap.SUCCESS In ipa-replica-prepare a call to search_ext() was returning ldap.SUCCESS. The search actually was fine and returned data but an exception was returned and handled (though we didn't know what to do with it). This patch lets it continue along. ticket 285 --- ipaserver/plugins/ldap2.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ipaserver/plugins/ldap2.py') diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py index 15b602457..b6313d85a 100644 --- a/ipaserver/plugins/ldap2.py +++ b/ipaserver/plugins/ldap2.py @@ -99,6 +99,8 @@ def _handle_errors(e, **kw): raise errors.LimitsExceeded() except _ldap.TIMELIMIT_EXCEEDED, e: raise errors.LimitsExceeded() + except _ldap.SUCCESS: + pass except _ldap.LDAPError, e: raise errors.DatabaseError(desc=desc, info=info) -- cgit