Could not bind to the LDAP server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Could not bind to the LDAP server

Post by WillemDH »

Hello,

I'm having troubles binding to our ldap server. I did not get it to work through the XI gui, so started testing in cli. I tried the following commands:

Code: Select all

/usr/local/nagios/libexec/check_ldap -H hostname -b basedn -D bindaccountdn -P password -2

Code: Select all

/usr/local/nagios/libexec/check_ldap -H hostname -b basedn -D bindaccountdn -P password -3
I can't get it to work and keep getting "Could not bind to the LDAP server". I'm 100 % sure the basedn, account and password is correct.. Any tips are welcome.

Willem
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Could not bind to the LDAP server

Post by abrist »

Does your ldap server require ssl/tls or use a non standard port?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Could not bind to the LDAP server

Post by WillemDH »

No SSL / TLS required. It also uses a standard port... I'm out of ideas..
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Could not bind to the LDAP server

Post by abrist »

Does the username or password use any "illegal" characters?
EDIT: Can you also check the login/auth logs on the ldap server?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Could not bind to the LDAP server

Post by WillemDH »

In the meantime I managed to solve this. I guess it was something with account permissions. Thread can be closed.
Nagios XI 5.8.1
https://outsideit.net
Locked