From d23561884de5d37f58bb8ca3538215dcc8f87eaf Mon Sep 17 00:00:00 2001 From: Lu <47571346+lu-kno@users.noreply.github.com> Date: Wed, 4 Nov 2026 19:34:42 +0100 Subject: [PATCH] Add break statement after successful LDAP connection if a successful connection has been achieved, loop should be broken out of. previously: even on successful conection, if the fallback was unavailable, it would result in a failed connection, potentially preventing ldap synchronisation --- cmk/gui/ldap_integration/ldap_connector.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cmk/gui/ldap_integration/ldap_connector.py b/cmk/gui/ldap_integration/ldap_connector.py index ccc6295e653b..a980f94e95d1 100644 --- a/cmk/gui/ldap_integration/ldap_connector.py +++ b/cmk/gui/ldap_integration/ldap_connector.py @@ -893,6 +893,7 @@ def connect(self, enforce_new: bool = False, enforce_server: str | None = None) if ldap_obj: self._ldap_obj = ldap_obj + break else: if error_msg is not None: # it should be, though errors.append(error_msg)