fix(user_ldap): Fix activation enforcement when testing the config

Signed-off-by: Louis Chmn <louis@chmn.me>
pull/56726/head
Louis Chmn 2025-11-27 12:04:27 +07:00 committed by nextcloud-command
parent ae8b6290e1
commit 291ec1e474
1 changed files with 1 additions and 1 deletions

@ -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';
}