Page 1 of 1

Could not bind to the LDAP server

Posted: Mon Dec 09, 2013 9:42 am
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

Re: Could not bind to the LDAP server

Posted: Mon Dec 09, 2013 1:21 pm
by abrist
Does your ldap server require ssl/tls or use a non standard port?

Re: Could not bind to the LDAP server

Posted: Mon Dec 09, 2013 3:14 pm
by WillemDH
No SSL / TLS required. It also uses a standard port... I'm out of ideas..

Re: Could not bind to the LDAP server

Posted: Mon Dec 09, 2013 3:27 pm
by abrist
Does the username or password use any "illegal" characters?
EDIT: Can you also check the login/auth logs on the ldap server?

Re: Could not bind to the LDAP server

Posted: Thu Jan 30, 2014 10:50 am
by WillemDH
In the meantime I managed to solve this. I guess it was something with account permissions. Thread can be closed.