aboutsummaryrefslogtreecommitdiffstats
path: root/lib/eldap
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2013-10-29 15:26:39 +0100
committerHans Nilsson <[email protected]>2013-10-29 15:26:39 +0100
commitee47ef6189651ffadebc3fad0933f12017e5de59 (patch)
treeae863648adc4480d5b5c5f396dc38c88b35e11ff /lib/eldap
parent0d41b12e62f285d1c5317b4c6396737d601191bc (diff)
downloadotp-ee47ef6189651ffadebc3fad0933f12017e5de59.tar.gz
otp-ee47ef6189651ffadebc3fad0933f12017e5de59.tar.bz2
otp-ee47ef6189651ffadebc3fad0933f12017e5de59.zip
eldap: re-fixed earlier bug fix...
Diffstat (limited to 'lib/eldap')
-rw-r--r--lib/eldap/src/eldap.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/eldap/src/eldap.erl b/lib/eldap/src/eldap.erl
index 27246996e3..af5bf94c97 100644
--- a/lib/eldap/src/eldap.erl
+++ b/lib/eldap/src/eldap.erl
@@ -47,7 +47,7 @@
anon_auth = false, % Allow anonymous authentication
ldaps = false, % LDAP/LDAPS
using_tls = false, % true if LDAPS or START_TLS executed
- tls_opts = [] % ssl:ssloptsion()
+ tls_opts = [] % ssl:ssloption()
}).
%%% For debug purposes
@@ -403,8 +403,7 @@ try_connect([],_) ->
do_connect(Host, Data, Opts) when Data#eldap.ldaps == false ->
gen_tcp:connect(Host, Data#eldap.port, Opts, Data#eldap.timeout);
do_connect(Host, Data, Opts) when Data#eldap.ldaps == true ->
- SslOpts = [{verify,0} | Opts ++ Data#eldap.tls_opts],
- ssl:connect(Host, Data#eldap.port, SslOpts).
+ ssl:connect(Host, Data#eldap.port, Opts++Data#eldap.tls_opts).
loop(Cpid, Data) ->
receive