Connect to LDAP server using StartTLS (not SSL)
Categories
(Thunderbird :: Address Book, enhancement)
Tracking
(Not tracked)
People
(Reporter: mehmet, Unassigned)
References
Details
Updated•13 years ago
|
Comment 1•13 years ago
|
||
Comment 4•9 years ago
|
||
Comment 5•9 years ago
|
||
Comment 8•7 years ago
|
||
I have the same Bug on Thunderbird 60.6.1.
Is it planed to fix/enhance it?
Comment 9•6 years ago
|
||
Just a few more notes on this (after looking at Bug 1576364):
There are a couple of methods for setting up a secure LDAP connection:
LDAP over SSL
- Client connects on a different port (636 by default) and an encrypted connection is negotiated before any LDAP traffic is exchanged.
- Was never formalised in the spec, and has been deprecated since LDAPv3 (around 2003).
- The current LDAP code handles this by opening a plain socket, then immediately asking the "starttls" socket provider to wrap it. It does this to force SSLv2, as some LDAP servers apparently have trouble with SSLv3.
LDAP with StartTLS
- Client connects to the same port for both secure and open connections (389 by default)
- there's an LDAP extension which adds a "startTLS" operation. This upgrades the plaintext connection to a secure one.
From wikipedia:
A common alternative method of securing LDAP communication is using an SSL tunnel. The default port for LDAP over SSL is 636. The use of LDAP
over SSL was common in LDAP Version 2 (LDAPv2) but it was never standardized in any formal specification. This usage has been deprecated along > with LDAPv2, which was officially retired in 2003
The ldap C API seems to have some support for the StartTLS extension, but it's not exposed via the C++ wrappers.
However, it might be better to avoid using the C API - it's largely concerned with negotiating the handshake, callbacks to handle fetching and storing certificates and all that. Would be much have the existing "starttls" socket provider (nsTLSSocketProvider) sort all that out.
The LDAP configuration GUI would also need a little tweak to show StartTLS as an option.
Comment 10•6 years ago
|
||
It just occurred to me that no GUI changes should be required.
StartTLS should be the default connection type if the "use SSL" checkbox is not checked:
As part of the startup, the client sends an LDAP startTLS request to the server and if the server supports it, they switch (client calls startTLS on the socket). If the server doesn't support startTLS the connection stays unencrypted.
Comment 11•6 years ago
|
||
Depends. For mail that used to be the case (a long time ago), but "StartTLS if available" is obviously insecure.
Comment 12•6 years ago
|
||
True. I can see the benefit of a "I require StartTLS" GUI option.
Still, seems reasonable to upgrade from unsecured to StartTLS (if available) even without the user specifically requesting it.
Comment 13•6 years ago
|
||
Yeah as long as the UI doesn't imply to the user that the connection is secure (which it isn't really), it's no worse than today. Just of questionable value.
Updated•4 years ago
|
Updated•3 years ago
|
Comment 15•3 years ago
|
||
Issue may be obsolete now. I cannot confirm whether TLS is being used (and not STARTTLS) with port 389, but the server I am using for LDAP says in its documentation that unencrypted connections are denied. I am able to connect over tcp/389 - with "Use Secure Connection (SSL)" option disabled as well as over tcp/636 (with SSL) .
Description
•