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

Signed-off-by: Louis Chmn <louis@chmn.me>
This commit is contained in:
Louis Chmn 2025-11-27 12:04:27 +01:00 committed by nextcloud-command
parent ae8b6290e1
commit 291ec1e474

View file

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