> This is version 4.10.12. I have now caught up with just about all of the
> patches and bug reports that had piled up, so there are a great many
> changes of various kinds.
If so, then another one wouldn't make the difference. :) The LDAP code
hasn't been updated to make use of LDAPv3 yet. Here is a patch that I
use to do that.
Any objections?
Michael
----------------------------------------------------------------------
--- exim-4.10/src/lookups/ldap.c.orig 2002-11-20 14:27:02.000000000 +0100
+++ exim-4.10/src/lookups/ldap.c 2002-11-20 14:30:38.000000000 +0100
@@ -293,6 +293,17 @@
(lcp->password != NULL && password != NULL &&
Ustrcmp(lcp->password, password) != 0))
{
+#ifdef LDAP_VERSION3
+ int idVersion;
+
+ idVersion=LDAP_VERSION3;
+ if ((rc=ldap_set_option(lcp->ld,LDAP_OPT_PROTOCOL_VERSION,&idVersion))!=LDAP_SUCCESS)
+ {
+ *errmsg = string_sprintf("failed to set option LDAP_VERSION3 for the LDAP connection to server "
+ "%s:%d - LDAP error %d: %s", host, port, rc, ldap_err2string(rc));
+ goto RETURN_ERROR;
+ }
+#endif
DEBUG(D_lookup) debug_printf("Binding with user=%s password=%s\n", user, password);
if ((rc = ldap_bind_s(lcp->ld, CS user, CS password, LDAP_AUTH_SIMPLE))
!= LDAP_SUCCESS)