Hi all!
I've successfully integrated Zabbix with Windoze domain via kerberos. Now I have full SSO
Here is small HOWTO:
1. Install and configure libapache2-mod-auth-kerb
2. Create keytab file for HTTP and put it in /etc/apache2/security/
3. In zabbix frontend directory create file .htaccess:
(ensure you have relevant AllowOverride option set in apache config).
Add the following in index.php:
4. You may want to change zabbix administrator user name from 'Admin' to 'Administrator' to unify name.
5. Change authentication in zabbix to HTTP
6. Enable kerberos ticket forwarding in web browser.
7. That's all!
Good luck.
I've successfully integrated Zabbix with Windoze domain via kerberos. Now I have full SSO

Here is small HOWTO:
1. Install and configure libapache2-mod-auth-kerb
2. Create keytab file for HTTP and put it in /etc/apache2/security/
3. In zabbix frontend directory create file .htaccess:
Code:
AuthType Kerberos AuthName "Kerberos Login" KrbAuthRealms <domain name> require valid-user Krb5Keytab /etc/apache2/security/zabbix.http.keytab KrbSaveCredentials on
Add the following in index.php:
Code:
if($authentication_type == ZBX_AUTH_HTTP){
if(isset($_SERVER['PHP_AUTH_USER']) && !empty($_SERVER['PHP_AUTH_USER'])){
if(!isset($sessionid)) $_REQUEST['enter'] = 'Enter';
$_REQUEST['name'] = $_SERVER['PHP_AUTH_USER'];
$_REQUEST['password'] = 'zabbix';//$_SERVER["PHP_AUTH_PW"];
}
// Added BY JT
elseif(isset($_SERVER['AUTH_TYPE']) && ($_SERVER['AUTH_TYPE']=='Negotiate')){
if(!isset($sessionid)) $_REQUEST['enter'] = 'Enter';
$user_parts = explode('@',$_SERVER['REMOTE_USER']);
$_REQUEST['name'] = $user_parts[0];
$_REQUEST['password'] = 'zabbix';//$_SERVER["PHP_AUTH_PW"];
}
// End added by JT
else{
access_deny();
}
}
5. Change authentication in zabbix to HTTP
6. Enable kerberos ticket forwarding in web browser.
7. That's all!
Good luck.
Comment