Can connect with ldapsearch but can't connect with check_ldap: "ldap_bind: Can't contact LDAP server (-1)"

mark.anderson at mark.anderson at
Sat Apr 21 07:36:44 CEST 2018



I can connect to the OpenLDAP server I want to monitor with ldapsearch:

anderson at nagios:/usr/local/nagios/libexec$ ldapsearch -H ldap:// -x -b "cn=OracleContext,dc=yyyyy,dc=edu"
(much data comes back)

but I cannot connect with check_ldap:

anderson at nagios:/usr/local/nagios/libexec$ check_ldap -H ldap:// -b "cn=OracleContext,dc=yyyyy,dc=edu" -v
ldap_bind: Can't contact LDAP server (-1)
Could not bind to the LDAP server

What does "Can't contact LDAP server" mean in this context?  It is not signalling a network connectivity problem, as seen by the success of ldapsearch.  It is not signalling a hostname resolution problem; the problem symptom does not change if I use the IP address rather than the hostname.

check_ldap is from nagios-plugins-release-2.2.1.

Thank you for your consideration.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Help mailing list