From 291ec1e474258d4f305a623d5cc793eacf8c86a2 Mon Sep 17 00:00:00 2001 From: Louis Chmn Date: Thu, 27 Nov 2025 12:04:27 +0100 Subject: [PATCH] fix(user_ldap): Fix activation enforcement when testing the config Signed-off-by: Louis Chmn --- apps/user_ldap/lib/Controller/ConfigAPIController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user_ldap/lib/Controller/ConfigAPIController.php b/apps/user_ldap/lib/Controller/ConfigAPIController.php index ca04e29550c..9ef20a0ffc9 100644 --- a/apps/user_ldap/lib/Controller/ConfigAPIController.php +++ b/apps/user_ldap/lib/Controller/ConfigAPIController.php @@ -250,7 +250,7 @@ class ConfigAPIController extends OCSController { $this->ensureConfigIDExists($configID); $connection = $this->connectionFactory->get($configID); $conf = $connection->getConfiguration(); - if ($conf['ldap_configuration_active'] === '0') { + if ($conf['ldap_configuration_active'] !== '1') { //needs to be true, otherwise it will also fail with an irritating message $conf['ldap_configuration_active'] = '1'; }