Trouble getting LDAP wizard to work
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Trouble getting LDAP wizard to work
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
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
Does your server require the Bind DN: of DC=whro,DC=local ??
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Trouble getting LDAP wizard to work
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
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
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]
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
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
[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
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
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
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
Are we sure you can connect to the LDAP server at all?
Can you run the following from your XI machine
Can you run the following from your XI machine
Code: Select all
telnet 192.168.99.x 389-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Trouble getting LDAP wizard to work
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 ~]#
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 ~]#