Revert "Fix backend validation of LdapBackendForm"

This reverts commit 0777848a84.
This commit is contained in:
Johannes Meyer 2014-10-15 08:49:17 +02:00
parent c9d12cf8ac
commit 8f7348b823
1 changed files with 2 additions and 1 deletions

View File

@ -134,7 +134,7 @@ class LdapBackendForm extends Form
{
try {
$ldapUserBackend = new LdapUserBackend(
ResourceFactory::createResource(ResourceFactory::getResourceConfig($form->getValue('resource'))),
ResourceFactory::createResource($form->getResourceConfig()),
$form->getElement('user_class')->getValue(),
$form->getElement('user_name_attribute')->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()));
return false;
}
return true;
}