Can connect with ldapsearch but can't connect with check_ldap: "ldap_bind: Can't contact LDAP server (-1)"
mark.anderson-ZD/[email protected] Sat, 21 Apr 2018 01:36:44 -0400
| Newsgroups | gmane.network.nagios.plugins |
|---|---|
| Message-ID | <201804210536.w3L5aiRU022601__28654.3346745477$1524288885$gmane$org@mail55c28.carrierzone.com> |
--=_6c953d429c400579e84f74e6d0973f3b Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 =09 Hello, I can connect to the OpenLDAP server I want to monitor with ldapsearch: anderson@nagios:/usr/local/nagios/libexec$ ldapsearch -H ldap://xxxxx.yyyyy= =2Eedu:389 -x -b "cn=3DOracleContext,dc=3Dyyyyy,dc=3Dedu" (much data comes back) but I cannot connect with check_ldap: anderson@nagios:/usr/local/nagios/libexec$ check_ldap -H ldap://xxxxx.yyyyy= =2Eedu:389 -b "cn=3DOracleContext,dc=3Dyyyyy,dc=3Dedu" -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 ldaps= earch. It is not signalling a hostname resolution problem; the proble= m symptom does not change if I use the IP address rather than the hostname= =2E check_ldap is from nagios-plugins-release-2.2.1. Thank you for your consideration. Mark --=_6c953d429c400579e84f74e6d0973f3b Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8 <head> <title></title> </head> <body> <div class=3D"userStyles" style=3D" font-family: Arial; font-size: 12pt; co= lor: #000000;">Hello,<br> <br> I can connect to the OpenLDAP server I want to monitor with ldapsearch:<br> <br> anderson@nagios:/usr/local/nagios/libexec$ ldapsearch -H ldap://xxxxx.yyyyy= =2Eedu:389 -x -b "cn=3DOracleContext,dc=3Dyyyyy,dc=3Dedu"<br> (much data comes back)<br> <br> but I cannot connect with check_ldap:<br> <br> anderson@nagios:/usr/local/nagios/libexec$ check_ldap -H ldap://xxxxx.yyyyy= =2Eedu:389 -b "cn=3DOracleContext,dc=3Dyyyyy,dc=3Dedu" -v<br> ldap_bind: Can't contact LDAP server (-1)<br> Could not bind to the LDAP server<br> <br> 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 ldaps= earch. It is not signalling a hostname resolution problem; the proble= m symptom does not change if I use the IP address rather than the hostname= =2E<br> <br> check_ldap is from nagios-plugins-release-2.2.1.<br> <br> Thank you for your consideration.<br> <br> Mark<br> <br> </div> </body> --=_6c953d429c400579e84f74e6d0973f3b--