What’s New in Spring LDAP 4.2

Breaking Changes

  • AttributeSchema now validates that an attribute’s LDAP name can be converted into a valid Java identifier.

  • gh-1812 - CompareFilter (and therefore EqualsFilter, LikeFilter and the other comparison filters), PresentFilter and NotPresentFilter now reject, with an IllegalArgumentException, any attribute name that is not a valid RFC 4512 attribute description. Values continue to be escaped; attribute names are validated and should not come from untrusted input. See Building LDAP Queries.

Core

  • Added LdapClient.Builder#dirContextPostProcessor for post-processing a `DirContextAdapter’s construction

  • Added DirContextAdapter#setMayRemoveByValue for controlling, per attribute, whether DirContextAdapter may remove individual values or must replace an attribute in its entirety. See Customizing How DirContextAdapter Calculates Modifications.