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

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


	


Hello,

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

anderson at nagios:/usr/local/nagios/libexec$ ldapsearch -H ldap://xxxxx.yyyyy.edu:389 -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://xxxxx.yyyyy.edu:389 -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.

Mark

 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20180421/def2a63b/attachment.html>


More information about the Help mailing list