Nagios check_ldaps plugin working with SSL or TLS

Submitted by sklav on Wed, 05/16/2012 - 15:42

After wasting many days trying to get the following to work. I figured it out simply by watching a lot of ldap debug scrolling by.
Now in my case this is all running on Debian Squeeze but im sure it is similar with other Distro's possibly location and path's changing.
All this assumes you already have ldap running with SSL or TLS.