Page 1 of 3

Trouble getting LDAP wizard to work

Posted: Wed Jul 18, 2012 8:21 am
by benningtonr
I have entered the following trying to get the ldap che4cks to worl, but i have had no success.

check_xi_service_ldap!-b "DC=whro,DC=local" -D "CN=ron bennington,OU=WHRO Staff,OU=Real Users,OU=User OUs,DC=whro,DC=local"-P "PAssword" -2

The error is:
Could not search/find objectclasses in DC=whro,DC=local

Thanks for all the help

Re: Trouble getting LDAP wizard to work

Posted: Wed Jul 18, 2012 9:53 am
by scottwilkerson
Does your server require the Bind DN: of DC=whro,DC=local ??

Re: Trouble getting LDAP wizard to work

Posted: Wed Jul 18, 2012 12:55 pm
by benningtonr
I tried it without the bind and get this:

Could not search/find objectclasses in CN=Ron Bennington,OU=WHRO Staff,OU=Real Users,OU=User OUs,DC=whro,DC=local

Re: Trouble getting LDAP wizard to work

Posted: Wed Jul 18, 2012 4:37 pm
by yancy
benningtonr,

do you have SSL enabled on your LDAP server? If so, I believe you'll want to use check_ldaps instead of check_ldap.

try your connection string here:

[root@CENT6_x64_IP_79 /]$ /usr/local/nagios/libexec/check_ldaps

check_ldaps: Could not parse arguments
Usage: check_ldaps -H <host> -b <base_dn> [-p <port>] [-a <attr>] [-D <binddn>]
[-P <password>] [-w <warn_time>] [-c <crit_time>] [-t timeout]
[-2|-3] [-4|-6]

Re: Trouble getting LDAP wizard to work

Posted: Thu Jul 19, 2012 8:02 am
by benningtonr
I get the following:


[root@nagios ~]# /usr/local/nagios/libexec/check_ldaps -H 192.168.99.x -D CN=Ron Bennington,OU=WHRO Staff,OU=Real Users,OU=User OUs,DC=whro,DC=local
Could not init startTLS at port 389!
[root@nagios ~]# /usr/local/nagios/libexec/check_ldap -H 192.168.99.x -D CN=Ron Bennington,OU=WHRO Staff,OU=Real Users,OU=User OUs,DC=whro,DC=local
Could not search/find objectclasses in Bennington,OU=WHRO

Re: Trouble getting LDAP wizard to work

Posted: Thu Jul 19, 2012 9:38 am
by yancy
Are you using TLS, SSL or neither in your implementation of OpenLDAP?

Re: Trouble getting LDAP wizard to work

Posted: Thu Jul 19, 2012 10:05 am
by benningtonr
I am not sure, how would I tell?

Re: Trouble getting LDAP wizard to work

Posted: Thu Jul 19, 2012 10:07 am
by benningtonr
I am using AD, Windows Server 2008 R2

Re: Trouble getting LDAP wizard to work

Posted: Thu Jul 19, 2012 10:17 am
by scottwilkerson
Are we sure you can connect to the LDAP server at all?

Can you run the following from your XI machine

Code: Select all

telnet 192.168.99.x 389

Re: Trouble getting LDAP wizard to work

Posted: Thu Jul 19, 2012 11:57 am
by benningtonr
Connected fine


login as:
@192.168.99.69's password:
Last login: Mon Jul 16 07:57:23 2012 from whro-ron-w7.whro.local
[@nagios ~]# telnet 192.168.99.x 389
Trying 192.168.99.x...
Connected to 192.168.99.x.
Escape character is '^]'.

Connection closed by foreign host.
[@nagios ~]#