summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcrit@rhel1.greyoak.com>2008-04-15 20:56:53 -0400
committerRob Crittenden <rcrit@thor.greyoak.com>2008-04-15 21:08:55 -0700
commitdce800816736ec5e419f25bdede89f11c6e6ee0b (patch)
tree6a1849ed99bf357ce814b7b6c28734d4a6fa94dd
parent78bdb752917f43bc73cc55ebdda987237d0c1d0c (diff)
downloadfreeipa-dce800816736ec5e419f25bdede89f11c6e6ee0b.tar.gz
freeipa-dce800816736ec5e419f25bdede89f11c6e6ee0b.tar.xz
freeipa-dce800816736ec5e419f25bdede89f11c6e6ee0b.zip
Catch all errors when obtaining an LDAP connection.
442582
-rw-r--r--ipa-server/xmlrpc-server/funcs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipa-server/xmlrpc-server/funcs.py b/ipa-server/xmlrpc-server/funcs.py
index b68fa3aeb..4c49d4701 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