See www.zabbix.com for the official Zabbix site.

Docs/howto/CentOS Implementing LDAP with SSL

From Zabbix.org
Jump to: navigation, search

Problem

When trying to switch from LDAP to LDAPS, you got several errors. This issue only happens if you work with LDAPS with certificates. Your /etc/ldap.conf all correct, all certificates installed and the ldapsearch working.

Cause

The php on Zabbix can't find the rights variables with the location of the certificates. When you switch the and it failing altogether. With your /etc/ldap.conf all correct, you still cant make it work inside Zabbix.

Solution

To solve this issue, edit the frontend to add the lines below: conf/zabbix.conf.php

putenv("LDAPTLS_CACERT=/etc/ldap/my_custom_cacert.pem");
putenv("LDAPTLS_CERT=/etc/ldap/my_custom_clientcrt.pem");
putenv("LDAPTLS_KEY=/etc/ldap/my_custom_clientkey.pem");

After restart your web server do the configuration again: go to Administration -> Authentication Test it. It should work now :)