X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/bdf1527974ee0faf5ac41c4554a89d161b6249e1..867fcbf59a53d5acbab505bc7670e7d0c29dbc94:/src/src/lookups/ldap.c 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) {