Trouble getting LDAP wizard to work

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Trouble getting LDAP wizard to work

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Trouble getting LDAP wizard to work

Post by scottwilkerson »

Does your server require the Bind DN: of DC=whro,DC=local ??
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Trouble getting LDAP wizard to work

Post 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
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Trouble getting LDAP wizard to work

Post 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]
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Trouble getting LDAP wizard to work

Post 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
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Trouble getting LDAP wizard to work

Post by yancy »

Are you using TLS, SSL or neither in your implementation of OpenLDAP?
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Trouble getting LDAP wizard to work

Post by benningtonr »

I am not sure, how would I tell?
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Trouble getting LDAP wizard to work

Post by benningtonr »

I am using AD, Windows Server 2008 R2
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Trouble getting LDAP wizard to work

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Trouble getting LDAP wizard to work

Post 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 ~]#
Locked