Skip to content

Commit

Permalink
Fix authentication backend validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Meyer committed Oct 15, 2014
1 parent f869a1b commit 94f8745
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions application/forms/Config/AuthenticationBackendConfigForm.php
Expand Up @@ -10,6 +10,7 @@
use Icinga\Web\Notification;
use Icinga\Application\Config;
use Icinga\Application\Platform;
use Icinga\Data\ResourceFactory;
use Icinga\Exception\ConfigurationError;
use Icinga\Form\Config\Authentication\DbBackendForm;
use Icinga\Form\Config\Authentication\LdapBackendForm;
Expand Down Expand Up @@ -319,4 +320,14 @@ function ($authBackendCfg) {

$this->addElements($this->getBackendForm($backendType)->createElements($formData)->getElements());
}

/**
* Return the configuration for the chosen resource
*
* @return Zend_Config
*/
public function getResourceConfig()
{
return ResourceFactory::getResourceConfig($this->getValue('resource'));
}
}

0 comments on commit 94f8745

Please sign in to comment.