diff options
author | Fredrik Gustafsson <[email protected]> | 2013-09-25 09:51:45 +0200 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-09-25 09:59:42 +0200 |
commit | 1a7f7b4abf091f19772f27cfc65eff532c334694 (patch) | |
tree | 8d9fb141a504b1ce2aa894d1e1ae455e04c29437 /lib | |
parent | 50e91bde3403c788bb1cabe644534f351d6dc1c1 (diff) | |
download | otp-1a7f7b4abf091f19772f27cfc65eff532c334694.tar.gz otp-1a7f7b4abf091f19772f27cfc65eff532c334694.tar.bz2 otp-1a7f7b4abf091f19772f27cfc65eff532c334694.zip |
eldap: eldap does not support peer verification, removed {verify, 0} from ssl options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/eldap/src/eldap.erl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/eldap/src/eldap.erl b/lib/eldap/src/eldap.erl index d11f904996..8ebb88e35b 100644 --- a/lib/eldap/src/eldap.erl +++ b/lib/eldap/src/eldap.erl @@ -42,8 +42,8 @@ log, % User provided log function timeout = infinity, % Request timeout anon_auth = false, % Allow anonymous authentication - use_tls = false, % LDAP/LDAPS - tls_opts = [] % ssl:ssloptsion() + use_tls = false, % LDAP/LDAPS + tls_opts = [] % ssl:ssloption() }). %%% For debug purposes @@ -389,8 +389,7 @@ try_connect([],_) -> do_connect(Host, Data, Opts) when Data#eldap.use_tls == false -> gen_tcp:connect(Host, Data#eldap.port, Opts, Data#eldap.timeout); do_connect(Host, Data, Opts) when Data#eldap.use_tls == 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 |