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
This commit is contained in:
Rob Crittenden
2010-09-24 15:27:02 -04:00
parent b3a501b8da
commit 38b8532696

View File

@@ -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)