From dce800816736ec5e419f25bdede89f11c6e6ee0b Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Tue, 15 Apr 2008 20:56:53 -0400 Subject: Catch all errors when obtaining an LDAP connection. 442582 --- ipa-server/xmlrpc-server/funcs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ipa-server/xmlrpc-server/funcs.py b/ipa-server/xmlrpc-server/funcs.py index b68fa3ae..4c49d470 100644 --- a/ipa-server/xmlrpc-server/funcs.py +++ b/ipa-server/xmlrpc-server/funcs.py @@ -84,6 +84,8 @@ class IPAConnPool: conn.set_krbccache(krbccache, cprinc.name) except ldap.UNWILLING_TO_PERFORM: raise ipaerror.gen_exception(ipaerror.CONNECTION_UNWILLING) + except Exception, e: + raise ipaerror.gen_exception(ipaerror.CONNECTION_NO_CONN, nested_exception=e) return conn -- cgit