Catch all errors when obtaining an LDAP connection.

442582
This commit is contained in:
Rob Crittenden
2008-04-15 20:56:53 -04:00
committed by Rob Crittenden
parent 78bdb75291
commit dce8008167

View File

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