mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Catch all errors when obtaining an LDAP connection.
442582
This commit is contained in:
committed by
Rob Crittenden
parent
78bdb75291
commit
dce8008167
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user