From 155bcc5db76b48e3fd6eb81a069f531c2ccec3fe Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 29 Jul 2015 13:45:18 +0200 Subject: [PATCH] LdapUserGroupBackendForm: Fetch config from the factory, not the app refs #9609 --- .../forms/Config/UserGroup/LdapUserGroupBackendForm.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/forms/Config/UserGroup/LdapUserGroupBackendForm.php b/application/forms/Config/UserGroup/LdapUserGroupBackendForm.php index 6190ab404..68b4de702 100644 --- a/application/forms/Config/UserGroup/LdapUserGroupBackendForm.php +++ b/application/forms/Config/UserGroup/LdapUserGroupBackendForm.php @@ -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 (