Patch to allow substring searches on DN

Description

This patch add the feature to search values with substring filters. It is fully compliant with OpenLDAP features including indexing.

Usage

ldapsearch -b "dc=foo,dc=bar" "uniqueMember=uid=foo*"
will match entries with cn including any of the following values :
  • uid=foo,ou=People,dc=foo,dc=bar
  • uid=foobar,ou=People,dc=foo,dc=bar
  • ...

Applying this patch

Download the OpenLDAP 2.3 branch, download the patch and apply it :

patch -p0 < fix-substring-search-for-dn.patch 

Also available in: HTML TXT