opravil-jan opened a new pull request, #127:
URL: https://github.com/apache/directory-studio/pull/127

   ## Summary
   
   This PR removes DIGEST-MD5 as an authentication method for LDAP connections.
   
   - DIGEST-MD5 is historic (RFC 6331, 2011).
   - Its security layer ciphers are broken or disallowed:
     - 3DES: NIST SP 800-131A Rev. 2;
     - RC4: RFC 7465;
     - DES.
   - Current servers can no longer use them:
     - OpenSSL 3 moved RC4 and DES to the legacy provider.
     - The Cyrus SASL 2.1.28 DIGEST-MD5 plugin with OpenSSL 3 fails to init 
3DES, which is what the Java client picks. This is the case on Alpine, CentOS 
Stream 9 and openSUSE.
     - The Alpine build even reports a successful bind, then the connection 
breaks.
   
   Simple authentication over StartTLS or LDAPS, or GSSAPI, are the secure 
alternatives.
   
   It builds on #126 (and #125) and contains their commits; review the last 
commit only, or merge those first.
   
   ## Changes
   
   - **Connections:**
     - The New Connection wizard and the connection properties no longer offer 
DIGEST-MD5. The SASL realm field, which only DIGEST-MD5 used, is removed.
     - `AuthenticationMethod.SASL_DIGEST_MD5` remains, deprecated. Stored 
connections and LDAP URLs (`X-AUTH-METHOD=DIGEST-MD5`) that use it still load, 
and nothing is changed silently:
       - Opening such a connection fails with "DIGEST-MD5 authentication is no 
longer supported. Edit the connection and choose another authentication method 
…", without sending a bind request.
       - Its properties show no authentication method and an error, and can 
only be applied after another method is chosen.
   - **Connection properties:** an error on any tab now prevents applying the 
properties, and it shows as soon as the dialog opens. Before, an error only 
showed on the selected tab and only after a change, and a fixed error message 
was never cleared.
   - **Not changed:** the ApacheDS and OpenLDAP configuration editors 
(replication and syncrepl SASL settings). They edit server configurations, 
which may still contain DIGEST-MD5.
   - **Tests:**
     - The DIGEST-MD5 connection tests are removed. New tests cover the bind 
error and the properties dialog of a stored DIGEST-MD5 connection.
     - The SASL confidentiality-required core test uses CRAM-MD5 instead.
   - **Test lab:** the OpenLDAP image no longer installs the DIGEST-MD5 plugin, 
and the ApacheDS test server no longer enables it.
   - **Help:** the authentication method lists and the SASL realm rows are 
updated.
   
   ## Testing
   
   The Jenkins Linux stage was reproduced locally with the pinned test lab.
   
   The full build passed apart from one UI test (27:53 min):
   - Core integration tests: 93 run, 0 failures, 1 skipped (105 before; the 
DIGEST-MD5 tests are removed).
   - UI tests: 417 run, 0 failures, 1 error, 8 skipped.
     - The error was in `BrowserTest.testBrowseWithPagingWithScrollMode`: a 40 
s timeout waiting for the Read Attributes job. That test is not related to this 
change and passed in the four earlier full runs.
     - Two reruns of `BrowserTest` passed: 28 run, 0 failures each.
   - The new 
`ConnectionViewTest.testConnectionWithDigestMd5RequiresAnotherAuthenticationMethod`
 failed before the connection properties validation fix and passes with it.
   
   ## Migration
   
   Users with DIGEST-MD5 connections need to choose another method; Studio 
tells them when they open the connection or its properties.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to