Fix backend validation of LdapBackendForm
This commit is contained in:
parent
771149e8d6
commit
0777848a84
|
@ -134,7 +134,7 @@ class LdapBackendForm extends Form
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$ldapUserBackend = new LdapUserBackend(
|
$ldapUserBackend = new LdapUserBackend(
|
||||||
ResourceFactory::createResource($form->getResourceConfig()),
|
ResourceFactory::createResource(ResourceFactory::getResourceConfig($form->getValue('resource'))),
|
||||||
$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,7 +147,6 @@ 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…
Reference in New Issue