diff options
author | YmrDtnJu <YmrDtnJu@users.noreply.github.com> | 2016-12-31 13:57:49 +0100 |
---|---|---|
committer | YmrDtnJu <YmrDtnJu@users.noreply.github.com> | 2016-12-31 13:57:49 +0100 |
commit | b738dd0fb2b443db9219013885be38e663c63685 (patch) | |
tree | 3c225e37b1e3102f807ae70c0969d441f780281f /src | |
parent | 33f316f2c5fad1f91b627fce7473da287bb23162 (diff) |
Do not call ldap_start_tls_s on ldapi:// connections.
The code already skips the initialisation of TLS on LDAP connections over unix
sockets but the call to ldap_start_tls_s is done nonetheless.
Diffstat (limited to 'src')
-rw-r--r-- | src/src/lookups/ldap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/src/lookups/ldap.c b/src/src/lookups/ldap.c index 3db787cce..b8a326834 100644 --- a/src/src/lookups/ldap.c +++ b/src/src/lookups/ldap.c @@ -580,7 +580,7 @@ if (!lcp->bound || { DEBUG(D_lookup) debug_printf("%sbinding with user=%s password=%s\n", (lcp->bound)? "re-" : "", user, password); - if (eldap_start_tls && !lcp->is_start_tls_called) + if (eldap_start_tls && !lcp->is_start_tls_called && !ldapi) { #if defined(LDAP_OPT_X_TLS) && !defined(LDAP_LIB_SOLARIS) /* The Oracle LDAP libraries (LDAP_LIB_TYPE=SOLARIS) don't support this. |