[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Extensible filters and substring searches



--On Monday, May 27, 2019 3:07 PM +0200 Côme Chilliet <come@opensides.be> wrote:

Le lundi 27 mai 2019, 12:43:51 CEST Michael Ströder a écrit :
On 5/27/19 12:10 PM, Côme Chilliet wrote:
> I'm trying to understand if it is possible or not to do a substring
> search on an attribute which does not specify a substring matching
> rule.
Which LDAP syntax is used in the attribute type description?

Well I'm interested in knowing if it's possible with any kind of
attribute, but the usecase I came across was with ipHostNumber:

attributetype ( 1.3.6.1.1.1.1.19 NAME 'ipHostNumber'
     DESC 'IP address'
     EQUALITY caseIgnoreIA5Match
     SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} )

That's an IA5 string, so use either:

caseExactIA5SubstringsMatch
or
caseIgnoreIA5SubstringsMatch

I.e., the matching rules should match the syntax.

--Quanah


--

Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
<http://www.symas.com>