diff options
author | Rob Crittenden <rcrit@rhel1.greyoak.com> | 2008-04-15 20:56:53 -0400 |
---|---|---|
committer | Rob Crittenden <rcrit@thor.greyoak.com> | 2008-04-15 21:08:55 -0700 |
commit | dce800816736ec5e419f25bdede89f11c6e6ee0b (patch) | |
tree | 6a1849ed99bf357ce814b7b6c28734d4a6fa94dd /ipa-server/xmlrpc-server | |
parent | 78bdb752917f43bc73cc55ebdda987237d0c1d0c (diff) | |
download | freeipa-dce800816736ec5e419f25bdede89f11c6e6ee0b.tar.gz freeipa-dce800816736ec5e419f25bdede89f11c6e6ee0b.tar.xz freeipa-dce800816736ec5e419f25bdede89f11c6e6ee0b.zip |
Catch all errors when obtaining an LDAP connection.
442582
Diffstat (limited to 'ipa-server/xmlrpc-server')
-rw-r--r-- | ipa-server/xmlrpc-server/funcs.py | 2 |
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 |