Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-3118

Allow to use complex "login" formats (SSO cases)

    XMLWordPrintable

    Details

    • Type: Change Request
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.8.22
    • Fix Version/s: None
    • Component/s: Frontend (F)
    • Environment:
      Apache 2.2 webserver running the PHP frontend on a Linux system
    • Story Points:
      10

      Description

      With authentication set to "http" Zabbix should also allow negotiate logins such as Kerberos. This patch to index.php allows these logins.

      --- /home/xxxx/src/zabbix-1.8.5/frontends/php/index.php 2011-04-15 21:17:31.000000000 +0200
      +++ index.php   2011-04-18 09:55:29.000000000 +0200
      @@ -65,6 +65,14 @@
                              $_REQUEST['name'] = $_SERVER['PHP_AUTH_USER'];
                              $_REQUEST['password'] = 'zabbix';//$_SERVER['PHP_AUTH_PW'];
                      }
      +// BEGIN added by xxxx
      +                elseif(isset($_SERVER['AUTH_TYPE']) && $_SERVER['AUTH_TYPE']=='Negotiate'){
      +                        if(!isset($sessionid)) $_REQUEST['enter'] = 'Enter';
      +                        $user_parts = explode('@',$_SERVER['REMOTE_USER']);
      +                        $_REQUEST['name'] = strtoupper($user_parts[0]);
      +                        $_REQUEST['password'] = 'zabbix';//$_SERVER["PHP_AUTH_PW"];
      +                }
      +// END added by xxxx
                      else{
                              access_deny();
                      }
      

      Please note, that there is a strtoupper for the username. This is because Linux sends the username in lowercase, Windows in uppercase. In my opinion usernames should not be case sensitive (as it is in Zabbix) but with this workaround it works well.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              thtux Thomas Lohm├╝ller
              Votes:
              9 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated: