diff options
author | Hans Nilsson <[email protected]> | 2013-10-29 15:26:39 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2013-10-29 15:26:39 +0100 |
commit | ee47ef6189651ffadebc3fad0933f12017e5de59 (patch) | |
tree | ae863648adc4480d5b5c5f396dc38c88b35e11ff /lib/eldap/src/eldap.erl | |
parent | 0d41b12e62f285d1c5317b4c6396737d601191bc (diff) | |
download | otp-ee47ef6189651ffadebc3fad0933f12017e5de59.tar.gz otp-ee47ef6189651ffadebc3fad0933f12017e5de59.tar.bz2 otp-ee47ef6189651ffadebc3fad0933f12017e5de59.zip |
eldap: re-fixed earlier bug fix...
Diffstat (limited to 'lib/eldap/src/eldap.erl')
-rw-r--r-- | lib/eldap/src/eldap.erl | 5 |
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 |