mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Don't try to bind on TLS failure
We have bind code that can handle the case where a server hasn't come up yet. It needs to handle a real connection failure such as the TLS hostname not matching. If we try to bind anyway we end up with a segfault in openldap. https://fedorahosted.org/freeipa/ticket/2301
This commit is contained in:
parent
0b9279a30a
commit
ce360f37f8
@ -346,7 +346,9 @@ class IPAdmin(IPAEntryLDAPObject):
|
||||
try:
|
||||
bind_func(*args, **kwargs)
|
||||
except (ldap.CONNECT_ERROR, ldap.SERVER_DOWN), e:
|
||||
if not timeout:
|
||||
if not timeout or 'TLS' in e.args[0].get('info', ''):
|
||||
# No connection to continue on if we have a TLS failure
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=784989
|
||||
raise e
|
||||
try:
|
||||
self.__wait_for_connection(timeout)
|
||||
|
Loading…
Reference in New Issue
Block a user