mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Revert "Fix backend validation of LdapBackendForm"
This reverts commit 0777848a84d63d10c5b184476845da32e92236ea.
This commit is contained in:
parent
c9d12cf8ac
commit
8f7348b823
@ -134,7 +134,7 @@ class LdapBackendForm extends Form
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$ldapUserBackend = new LdapUserBackend(
|
$ldapUserBackend = new LdapUserBackend(
|
||||||
ResourceFactory::createResource(ResourceFactory::getResourceConfig($form->getValue('resource'))),
|
ResourceFactory::createResource($form->getResourceConfig()),
|
||||||
$form->getElement('user_class')->getValue(),
|
$form->getElement('user_class')->getValue(),
|
||||||
$form->getElement('user_name_attribute')->getValue(),
|
$form->getElement('user_name_attribute')->getValue(),
|
||||||
$form->getElement('base_dn')->getValue()
|
$form->getElement('base_dn')->getValue()
|
||||||
@ -147,6 +147,7 @@ class LdapBackendForm extends Form
|
|||||||
$form->addError(sprintf(t('Unable to validate authentication: %s'), $e->getMessage()));
|
$form->addError(sprintf(t('Unable to validate authentication: %s'), $e->getMessage()));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user