diff --git a/application/controllers/AuthenticationController.php b/application/controllers/AuthenticationController.php index f50987de7..4476ecebd 100644 --- a/application/controllers/AuthenticationController.php +++ b/application/controllers/AuthenticationController.php @@ -63,8 +63,6 @@ class AuthenticationController extends ActionController $this->view->form = new LoginForm(); $this->view->form->setRequest($this->_request); $this->view->title = $this->translate('Icingaweb Login'); - $user = new User(''); - $password = ''; try { $redirectUrl = Url::fromPath($this->_request->getParam('redirect', 'dashboard')); @@ -95,9 +93,10 @@ class AuthenticationController extends ActionController if ($this->getRequest()->isGet()) { + $user = new User(''); foreach ($chain as $backend) { if ($backend instanceof AutoLoginBackend) { - $authenticated = $backend->authenticate($user, $password); + $authenticated = $backend->authenticate($user); if ($authenticated === true) { $auth->setAuthenticated($user); $this->redirectNow($redirectUrl); diff --git a/application/forms/Config/Authentication/LdapBackendForm.php b/application/forms/Config/Authentication/LdapBackendForm.php index 966cea1cc..051b3c0c0 100644 --- a/application/forms/Config/Authentication/LdapBackendForm.php +++ b/application/forms/Config/Authentication/LdapBackendForm.php @@ -179,9 +179,12 @@ class LdapBackendForm extends BaseBackendForm $backendConfig->user_class, $backendConfig->user_name_attribute ); + $testConn->assertAuthenticationPossible(); + /* if ($testConn->count() === 0) { throw new Exception('No Users Found On Directory Server'); } + */ } catch (Exception $exc) { $this->addErrorMessage( t('Connection Validation Failed: ' . $exc->getMessage()) diff --git a/application/layouts/scripts/layout.phtml b/application/layouts/scripts/layout.phtml index 16a245a15..71b233610 100644 --- a/application/layouts/scripts/layout.phtml +++ b/application/layouts/scripts/layout.phtml @@ -10,17 +10,16 @@ if (array_key_exists('_dev', $_GET)) { $cssfile = 'css/icinga.min.css'; } +$ie8jsfile = 'js/icinga.ie8.js'; + $isIframe = isset($_GET['_render']) && $_GET['_render'] === 'iframe'; +$iframeClass = $isIframe ? ' iframe' : ''; ?> - - + - + @@ -50,7 +49,12 @@ $isIframe = isset($_GET['_render']) && $_GET['_render'] === 'iframe';
render('body.phtml') ?>
+ + +