check_ldap fails with "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.
jwelch
Posts: 225
Joined: Wed Sep 05, 2012 12:49 pm

Re: check_ldap fails with "Could not bind to the ldap-server

Post by jwelch »

I can't imagine how. Have you actually tried this? I'd be interested in seeing a working example.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_ldap fails with "Could not bind to the ldap-server

Post by sreinhardt »

well the basis of that idea would be that it could resolve either hostname or fqdn to the proper IP and "shouldn't" have an issue. The ld_host part is simply a variable name, it's not referencing an actual structure and considering the strlen(ld_host) after, it expects to work with a simple string. So with it simply basing the idea off strings, abrist's idea should work, although I am not sure why it doesn't seem to for you.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked