LdapUserGroupBackendForm: Fetch config from the factory, not the app

refs #9609
This commit is contained in:
Johannes Meyer 2015-07-29 13:45:18 +02:00
parent 13edbf901d
commit 155bcc5db7
1 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@
namespace Icinga\Forms\Config\UserGroup;
use Icinga\Application\Config;
use Icinga\Authentication\User\UserBackend;
use Icinga\Authentication\UserGroup\LdapUserGroupBackend;
use Icinga\Data\ConfigObject;
@ -293,7 +292,7 @@ class LdapUserGroupBackendForm extends Form
protected function getLdapUserBackendNames(LdapConnection $resource)
{
$names = array();
foreach (Config::app('authentication') as $name => $config) {
foreach (UserBackend::getBackendConfigs() as $name => $config) {
if (in_array(strtolower($config->backend), array('ldap', 'msldap'))) {
$backendResource = ResourceFactory::create($config->resource);
if (