From 76db8ed677bfd24c314b9a55db2c042b6f2ce1e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20D?= Date: Sat, 11 Jun 2022 20:09:54 +0200 Subject: [PATCH] refactor: [WIP] Migrate config ldap controller. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rubén D --- app/modules/web/Controllers/ConfigLdap/SaveController.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/modules/web/Controllers/ConfigLdap/SaveController.php b/app/modules/web/Controllers/ConfigLdap/SaveController.php index 78f0a270..9f2148ca 100644 --- a/app/modules/web/Controllers/ConfigLdap/SaveController.php +++ b/app/modules/web/Controllers/ConfigLdap/SaveController.php @@ -55,18 +55,14 @@ final class SaveController extends SimpleControllerBase $eventMessage = EventMessage::factory(); $configData = $this->config->getConfigData(); - // LDAP $ldapEnabled = $this->request->analyzeBool('ldap_enabled', false); $ldapDefaultGroup = $this->request->analyzeInt('ldap_defaultgroup'); $ldapDefaultProfile = $this->request->analyzeInt('ldap_defaultprofile'); $ldapParams = $this->getLdapParamsFromRequest($this->request); - // Valores para la configuración de LDAP if ($ldapEnabled - && !($ldapParams->getServer() - || $ldapParams->getSearchBase() - || $ldapParams->getBindDn())) { + && !($ldapParams->getServer() || $ldapParams->getSearchBase() || $ldapParams->getBindDn())) { throw new ValidationException(SPException::ERROR, __u('Missing LDAP parameters')); }