diff --git a/cmk/gui/userdb/_connections.py b/cmk/gui/userdb/_connections.py index 9b455ca811f..8cf435b9c38 100644 --- a/cmk/gui/userdb/_connections.py +++ b/cmk/gui/userdb/_connections.py @@ -295,18 +295,6 @@ def get_active_saml_connections() -> dict[str, SAMLUserConnectionConfig]: } -# The saved configuration for user connections is a bit inconsistent, let's fix -# this here once and for all. -def fix_user_connections() -> None: - for cfg in active_config.user_connections: - # Although our current configuration always seems to have a 'disabled' - # entry, this might not have always been the case. - cfg.setdefault("disabled", False) - # Only migrated configurations have a 'type' entry, all others are - # implictly LDAP connections. - cfg.setdefault("type", "ldap") - - def locked_attributes(connection_id: str | None) -> Sequence[str]: """Returns a list of connection specific locked attributes""" return _get_attributes(connection_id, lambda c: c.locked_attributes()) diff --git a/cmk/gui/userdb/registration.py b/cmk/gui/userdb/registration.py index 453e890314c..38a1da67fd7 100644 --- a/cmk/gui/userdb/registration.py +++ b/cmk/gui/userdb/registration.py @@ -6,14 +6,12 @@ from datetime import timedelta from cmk.gui.background_job import BackgroundJobRegistry -from cmk.gui.config import register_post_config_load_hook from cmk.gui.cron import CronJob, CronJobRegistry from cmk.gui.pages import PageRegistry from cmk.gui.watolib.groups import ContactGroupUsageFinderRegistry from cmk.gui.watolib.timeperiods import TimeperiodUsageFinderRegistry from . import ldap_connector, user_attributes -from ._connections import fix_user_connections from ._connector import UserConnectorRegistry from ._find_usage import find_timeperiod_usage_in_users, find_usages_of_contact_group_in_users from ._user_attribute import UserAttributeRegistry @@ -35,7 +33,6 @@ def register( ) -> None: user_attributes.register(user_attribute_registry) - register_post_config_load_hook(fix_user_connections) cron_job_registry.register( CronJob( name="execute_userdb_job",