From ee47ef6189651ffadebc3fad0933f12017e5de59 Mon Sep 17 00:00:00 2001 From: Hans Nilsson Date: Tue, 29 Oct 2013 15:26:39 +0100 Subject: eldap: re-fixed earlier bug fix... --- lib/eldap/src/eldap.erl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/eldap/src') 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 -- cgit v1.2.3