Skip to content

Commit

Permalink
Don't require authentication.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed May 22, 2017
1 parent e465501 commit 2ec096f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions horde/scripts/http_login.php
Expand Up @@ -16,7 +16,7 @@
$HORDE_DIR = '/var/www/horde';

require_once $HORDE_DIR . '/lib/Application.php';
Horde_Registry::appInit('horde');
Horde_Registry::appInit('horde', array('authentication' => 'none'));

$auth = $injector->getInstance('Horde_Core_Factory_Auth')->create();
$vars = $injector->getInstance('Horde_Variables');
Expand All @@ -26,7 +26,6 @@
empty($_SERVER['PHP_AUTH_PW']) ||
!$auth->authenticate($_SERVER['PHP_AUTH_USER'],
array('password' => $_SERVER['PHP_AUTH_PW']))) {

header('WWW-Authenticate: Basic realm="' . $auth->getParam('realm') . '"');
header('HTTP/1.0 401 Unauthorized');
exit('Forbidden');
Expand Down

0 comments on commit 2ec096f

Please sign in to comment.