Skip to content

Commit 291ec1e

Browse files
artongenextcloud-command
authored andcommitted
fix(user_ldap): Fix activation enforcement when testing the config
Signed-off-by: Louis Chmn <[email protected]>
1 parent ae8b629 commit 291ec1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/user_ldap/lib/Controller/ConfigAPIController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public function testConfiguration(string $configID) {
250250
$this->ensureConfigIDExists($configID);
251251
$connection = $this->connectionFactory->get($configID);
252252
$conf = $connection->getConfiguration();
253-
if ($conf['ldap_configuration_active'] === '0') {
253+
if ($conf['ldap_configuration_active'] !== '1') {
254254
//needs to be true, otherwise it will also fail with an irritating message
255255
$conf['ldap_configuration_active'] = '1';
256256
}

0 commit comments

Comments
 (0)