summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-09-24 15:27:02 -0400
committerRob Crittenden <rcritten@redhat.com>2010-09-28 13:35:41 -0400
commit38b8532696b4c969e437452386b7019d1266a69c (patch)
tree1ab96d7ac3265f706097447d348e13dbd9b5bf2e
parentb3a501b8dad71d57b09e3826dcabb1972f9ca36e (diff)
downloadfreeipa-38b8532696b4c969e437452386b7019d1266a69c.tar.gz
freeipa-38b8532696b4c969e437452386b7019d1266a69c.tar.xz
freeipa-38b8532696b4c969e437452386b7019d1266a69c.zip
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
-rw-r--r--ipaserver/plugins/ldap2.py2
1 files changed, 2 insertions, 0 deletions
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)