Solaris build fix for Oracle's LDAP libraries.
authorPhil Pennock <pdp@exim.org>
Mon, 9 May 2011 09:31:39 +0000 (05:31 -0400)
committerPhil Pennock <pdp@exim.org>
Mon, 9 May 2011 09:31:39 +0000 (05:31 -0400)
Patch from Stephen Usher.
fixes 1109

doc/doc-txt/ChangeLog
src/src/lookups/ldap.c

index 59227705d81a0dd5a72603245624f9eb1661bbab..d3b3609f3621a715b01e095746f9d8bedb8223df 100644 (file)
@@ -3,6 +3,13 @@ $Cambridge: exim/doc/doc-txt/ChangeLog,v 1.632 2010/06/12 15:21:25 jetmore Exp $
 Change log file for Exim from version 4.21
 -------------------------------------------
 
 Change log file for Exim from version 4.21
 -------------------------------------------
 
+Exim version 4.77
+-----------------
+
+PP/01 Solaris build fix for Oracle's LDAP libraries.
+      Bugzilla 1109, patch from Stephen Usher.
+
+
 Exim version 4.76
 -----------------
 
 Exim version 4.76
 -----------------
 
index 06b74946912ff5d9ecc25930103f519d0f56db64..2a4199c3ac25f2e81efa0a22b0019bc436aea507 100644 (file)
@@ -521,10 +521,13 @@ if (!lcp->bound ||
   {
   DEBUG(D_lookup) debug_printf("%sbinding with user=%s password=%s\n",
     (lcp->bound)? "re-" : "", user, password);
   {
   DEBUG(D_lookup) debug_printf("%sbinding with user=%s password=%s\n",
     (lcp->bound)? "re-" : "", user, password);
+#ifdef LDAP_OPT_X_TLS
+  /* The Oracle LDAP libraries (LDAP_LIB_TYPE=SOLARIS) don't support this: */
   if (eldap_start_tls)
     {
     ldap_start_tls_s(lcp->ld, NULL, NULL);
     }
   if (eldap_start_tls)
     {
     ldap_start_tls_s(lcp->ld, NULL, NULL);
     }
+#endif
   if ((msgid = ldap_bind(lcp->ld, CS user, CS password, LDAP_AUTH_SIMPLE))
        == -1)
     {
   if ((msgid = ldap_bind(lcp->ld, CS user, CS password, LDAP_AUTH_SIMPLE))
        == -1)
     {