Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-18229

HTTP authentication not working if Guest user is disabled

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • None
    • 5.2.0alpha1
    • API (A), Frontend (F)

      Steps to reproduce:

      1. Preconditions:
        1. Admin exists in Zabbix database and allowed to access frontend
        2. Guest user in Disabled user group (important condition, without this works fine)
      2. Put .pwd and .htaccess files to /zabbix/ui folder
        Check "AuthUserFile" .pwd path in htaccess file
      3. Go to Administration -> Authentication -> HTTP settings
      4. Enable HTTP authentication
      5. Set Default login form as Zabbix login form
      6. Update settings
      7. Open Zabbix login form
      8. Click on "Sign in with HTTP" in login form
      9. Type credentials, username:Admin password:123456

      Result: HTTP ERROR 500, error in apache log:

      [Tue Aug 11 14:10:54.061840 2020] [php7:notice] [pid 4938] [client ::1:57588] PHP Fatal error:  Uncaught Exception: Unable to load settings API parameters. in /home/natalja/workspace/master/ui/include/classes/helpers/CSettingsHelper.php:103\nStack trace:\n#0 /home/natalja/workspace/master/ui/include/classes/helpers/CConfigGeneralHelper.php(47): CSettingsHelper::loadParams()\n#1 /home/natalja/workspace/master/ui/include/classes/api/services/CUser.php(1655): CConfigGeneralHelper::get()\n#2 /home/natalja/workspace/master/ui/include/classes/api/services/CUser.php(1343): CUser->findByAlias()\n#3 /home/natalja/workspace/master/ui/index_http.php(70): CUser->loginByAlias()\n#4 {main}\n  thrown in /home/natalja/workspace/master/ui/include/classes/helpers/CSettingsHelper.php on line 103, referer: http://localhost/master/
      

      Expected: user is signed in

        1. .htaccess
          0.1 kB
        2. .pwd
          0.0 kB

            Unassigned Unassigned
            natalja.zabbix Natalja Romancaka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: