problem with check_ldap

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
dialsc
Posts: 1
Joined: Fri Mar 11, 2011 2:34 am

problem with check_ldap

Post by dialsc »

hello,

i've got a problem with the check_ldap plugin. im running nagios on a gentoo server and when i try using the check_ldap plugin it gives me the following error:

Code: Select all

ldap_bind: Protocol error (2)
        additional info: historical protocol version requested, use LDAPv3 instead
Could not bind to the LDAP server
i've figured out that the plugin knows the command line parameter -3 but whether or not is being recognized depends on (i don't know how it's called) some kind of global attribute in the check_ldap.c file. it's called HAVE_LDAP_SET_OPTION.

here's a snipe from the code:

Code: Select all

#ifdef HAVE_LDAP_SET_OPTION
        printf (" %s\n", "-2 [--ver2]");
  printf ("    %s\n", _("use ldap protocol version 2"));
  printf (" %s\n", "-3 [--ver3]");
  printf ("    %s\n", _("use ldap protocol version 3"));
  printf ("    (%s %d)\n", _("default protocol version:"), DEFAULT_PROTOCOL);
#endif
what do i need to do to become this global attribute set during compilation?

thx,
greez,

dialsc
Locked