mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Change logic for eldap tls_verify=soft and false
Looks like originally both soft and hard worked the same way, so lets make them do that, and we also need to add {verify, verify_none} for false case otherwise it fails on R26.
This commit is contained in:
parent
81ceefe2f1
commit
08a78a1654
@ -605,10 +605,10 @@ init([Hosts, Port, Rootdn, Passwd, Opts]) ->
|
||||
[]),
|
||||
CertOpts;
|
||||
Verify == soft ->
|
||||
[{verify, verify_none}] ++ CertOpts ++ CacertOpts ++ DepthOpts;
|
||||
[{verify, verify_peer}] ++ CertOpts ++ CacertOpts ++ DepthOpts;
|
||||
Verify == hard ->
|
||||
[{verify, verify_peer}] ++ CertOpts ++ CacertOpts ++ DepthOpts;
|
||||
true -> []
|
||||
true -> [{verify, verify_none}]
|
||||
end,
|
||||
{ok, connecting,
|
||||
#eldap{hosts = Hosts, port = PortTemp, rootdn = Rootdn,
|
||||
|
Loading…
Reference in New Issue
Block a user