Skip to content

Deprecate DigestMd5DirContextAuthenticationStrategy #1935

Open

Description

@jzheaux

DigestMd5DirContextAuthenticationStrategy authenticates using the SASL DIGEST-MD5 mechanism. RFC 6331 moved DIGEST-MD5 to historic and IANA marked it obsolete, citing the weak MD5 hash and the lack of channel binding. The mechanism also requires the server to hold the user's password in a form it can compute the digest from, which rules out salted one-way password hashes.

Please:

  • Deprecate DigestMd5DirContextAuthenticationStrategy, with Javadoc that cites RFC 6331 and points to simple bind over TLS (DefaultTlsDirContextAuthenticationStrategy or an ldaps:// URL) as the replacement. Removal is out of scope for this issue.
  • Update the reference documentation so that anything that mentions DIGEST-MD5 points to the DefaultTls sample (Add Sample Showing DefaultTlsDirContextAuthenticationStrategy spring-ldap-samples#12) as the replacement.

The reference documentation that covers DIGEST-MD5 will move or change with the deprecation, so the sample is the intended replacement for it.

SASL mechanisms such as SCRAM and GSSAPI are not in scope. The JDK has no SCRAM client, and a Kerberos exploration is tracked in spring-projects/spring-ldap-samples#13. We can revisit generic SASL support if there is demand for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions