--- CUser_orig.php 2014-08-07 12:02:36.000000000 +0200 +++ CUser.php 2014-08-07 12:02:57.000000000 +0200 @@ -980,15 +980,15 @@ } if ($authType == ZBX_AUTH_HTTP) { - // if PHP_AUTH_USER is not set, it means that HTTP authentication is not enabled - if (!isset($_SERVER['PHP_AUTH_USER'])) { + // if REMOTE_USER is not set, it means that HTTP authentication is not enabled + if (!isset($_SERVER['REMOTE_USER'])) { self::exception(ZBX_API_ERROR_PARAMETERS, _('Cannot login.')); } // check if the user name used when calling the API matches the one used for HTTP authentication - elseif ($name !== $_SERVER['PHP_AUTH_USER']) { + elseif ($name !== $_SERVER['REMOTE_USER']) { self::exception(ZBX_API_ERROR_PARAMETERS, _s('Login name "%1$s" does not match the name "%2$s" used to pass HTTP authentication.', - $name, $_SERVER['PHP_AUTH_USER'] + $name, $_SERVER['REMOTE_USER'] ) ); }