I have a problem with ZABBIX basic HTTP authentication.
Used version of ZABBIX application is 1.8.2. ZABBIX is installed on Ubuntu 9.1 and frontend application is deployed on Apache 2.2.
Basic HTTP authentication is enabled in ZABBIX application and also basic authentication is defined for Apache. Users that are defined for ZABBIX application are also defined as Apache users.
Other web application is deployed on Tomcat 6. Connection between Apache Web Server and Tomcat is done using mod_proxy (ProxyPass using ajp://localhost:8009). This application can be deployed on same machine as ZABBIX installation, but we are also considering option where we will have two machines one with Apache + ZABBIX and other machine Apache + Tomcat.
I want to login on ZABBIX application from my other application. For example when somebody clicks on some link in my application action will be: redirect user to ZABBIX dashboard page. But, I want to skip login page and I would like to provide user credentials to ZABBIX inside my application and therefore skip login form.
Not to forget to mention that I will have those credentials in ZABBIX created by ZABBIX administrator (person that have ZABBIX admin credentials).
I try to set credentials information in request header, but Apache every time shows login form. Credentials are set in request by using following format:
request.setAttribute("Authorization", "Basic BASE64String");
BASE64String is Base64 encoded value for username and password (username/password string has the following format username
assword).
Username and password can be sent as URL parameters (http://username
assword@localhost/zabbix/), but this works only for Firefox. Internet Explorer does not supports this, because of IE security update.
Could somebody let me know how can I do this? I am also considering option with providing cookie information in order to skip login form? Is this a good way of thinking?
Thanks in advance.
Used version of ZABBIX application is 1.8.2. ZABBIX is installed on Ubuntu 9.1 and frontend application is deployed on Apache 2.2.
Basic HTTP authentication is enabled in ZABBIX application and also basic authentication is defined for Apache. Users that are defined for ZABBIX application are also defined as Apache users.
Other web application is deployed on Tomcat 6. Connection between Apache Web Server and Tomcat is done using mod_proxy (ProxyPass using ajp://localhost:8009). This application can be deployed on same machine as ZABBIX installation, but we are also considering option where we will have two machines one with Apache + ZABBIX and other machine Apache + Tomcat.
I want to login on ZABBIX application from my other application. For example when somebody clicks on some link in my application action will be: redirect user to ZABBIX dashboard page. But, I want to skip login page and I would like to provide user credentials to ZABBIX inside my application and therefore skip login form.
Not to forget to mention that I will have those credentials in ZABBIX created by ZABBIX administrator (person that have ZABBIX admin credentials).
I try to set credentials information in request header, but Apache every time shows login form. Credentials are set in request by using following format:
request.setAttribute("Authorization", "Basic BASE64String");
BASE64String is Base64 encoded value for username and password (username/password string has the following format username
assword).Username and password can be sent as URL parameters (http://username
assword@localhost/zabbix/), but this works only for Firefox. Internet Explorer does not supports this, because of IE security update.Could somebody let me know how can I do this? I am also considering option with providing cookie information in order to skip login form? Is this a good way of thinking?
Thanks in advance.