From bb4429f8aa1f8e4cb44a544206b2568138ce9c3d Mon Sep 17 00:00:00 2001 From: Madhuri Upadhye Date: Wed, 15 Jul 2026 21:40:22 +0530 Subject: [PATCH] ldap_provider: Add check_config parameter Add optional check_config parameter to ldap_provider() to allow skipping configuration validation when testing features where options are functional but not yet in the validator Defaults to True for backward compatibility. Signed-off-by: Madhuri Upadhye --- sssd_test_framework/utils/sssd.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sssd_test_framework/utils/sssd.py b/sssd_test_framework/utils/sssd.py index dd223b78..c0a6fb1a 100644 --- a/sssd_test_framework/utils/sssd.py +++ b/sssd_test_framework/utils/sssd.py @@ -998,6 +998,7 @@ def ldap_provider( tls_reqcert: str = "demand", ssl: bool = False, config: dict[str, str] | None = None, + check_config: bool = True, ) -> None: """ Configure SSSD to use the ldap_provider to connect to IPA or AD. @@ -1022,6 +1023,8 @@ def ldap_provider( :type ssl: bool :param config: Additional configuration, optional :type config: dict[str, str] | None + :param check_config: Run config validation, defaults to True + :type check_config: bool """ self.sssd.domain.clear() self.sssd.domain.update( @@ -1057,7 +1060,7 @@ def ldap_provider( for key, value in config.items(): self.sssd.domain[key] = value - self.sssd.config_apply() + self.sssd.config_apply(check_config=check_config) def proxy( self,