mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
Fix authentication backend validation
This commit is contained in:
parent
f869a1bf17
commit
94f8745fc0
@ -10,6 +10,7 @@ use Icinga\Form\ConfigForm;
|
|||||||
use Icinga\Web\Notification;
|
use Icinga\Web\Notification;
|
||||||
use Icinga\Application\Config;
|
use Icinga\Application\Config;
|
||||||
use Icinga\Application\Platform;
|
use Icinga\Application\Platform;
|
||||||
|
use Icinga\Data\ResourceFactory;
|
||||||
use Icinga\Exception\ConfigurationError;
|
use Icinga\Exception\ConfigurationError;
|
||||||
use Icinga\Form\Config\Authentication\DbBackendForm;
|
use Icinga\Form\Config\Authentication\DbBackendForm;
|
||||||
use Icinga\Form\Config\Authentication\LdapBackendForm;
|
use Icinga\Form\Config\Authentication\LdapBackendForm;
|
||||||
@ -319,4 +320,14 @@ class AuthenticationBackendConfigForm extends ConfigForm
|
|||||||
|
|
||||||
$this->addElements($this->getBackendForm($backendType)->createElements($formData)->getElements());
|
$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'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user