summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhil Pennock <pdp@exim.org>2011-05-09 05:31:39 -0400
committerPhil Pennock <pdp@exim.org>2011-05-09 05:31:39 -0400
commit867fcbf59a53d5acbab505bc7670e7d0c29dbc94 (patch)
treefd673c281f2b7c62604e82159f493bdf2ee02efd /src
parentbdf1527974ee0faf5ac41c4554a89d161b6249e1 (diff)
Solaris build fix for Oracle's LDAP libraries.
Patch from Stephen Usher. fixes 1109
Diffstat (limited to 'src')
-rw-r--r--src/src/lookups/ldap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/src/lookups/ldap.c b/src/src/lookups/ldap.c
index 06b749469..2a4199c3a 100644
--- a/src/src/lookups/ldap.c
+++ b/src/src/lookups/ldap.c
@@ -521,10 +521,13 @@ if (!lcp->bound ||
{
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);
}
+#endif
if ((msgid = ldap_bind(lcp->ld, CS user, CS password, LDAP_AUTH_SIMPLE))
== -1)
{