* [FIX] Wrong behavior when saving LDAP server. Thanks to @lreiher for the feedback. Closes #1277

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2019-04-27 00:08:31 +02:00
parent df02a33677
commit 830d7839ac

View File

@@ -32,6 +32,7 @@ use SP\Core\Acl\UnauthorizedPageException;
use SP\Core\Events\Event;
use SP\Core\Events\EventMessage;
use SP\Core\Exceptions\CheckException;
use SP\Core\Exceptions\SessionTimeout;
use SP\Core\Exceptions\SPException;
use SP\Core\Exceptions\ValidationException;
use SP\Http\JsonResponse;
@@ -79,7 +80,7 @@ final class ConfigLdapController extends SimpleControllerBase
$configData->setLdapEnabled(true);
$configData->setLdapType($ldapParams->getType());
$configData->setLdapTlsEnabled($ldapParams->isTlsEnabled());
$configData->setLdapServer($ldapParams->getServer());
$configData->setLdapServer($this->request->analyzeString('ldap_server'));
$configData->setLdapBase($ldapParams->getSearchBase());
$configData->setLdapGroup($ldapParams->getGroup());
$configData->setLdapDefaultGroup($ldapDefaultGroup);
@@ -302,6 +303,7 @@ final class ConfigLdapController extends SimpleControllerBase
/**
* @return bool
* @throws SessionTimeout
*/
protected function initialize()
{