Re: Cannot search usercertificate binary data with raw data

Howard Chu <[email protected]> Sat, 08 May 2010 07:54:40 -0700
Newsgroups gmane.network.openldap.general
Message-ID <[email protected]>
Michael Str=F6der wrote:
> Howard Chu wrote:
>> Michael Str=F6der wrote:
>>> But userCertificate has certificateExactMatch (2.5.13.34) defined as
>>> equality matching rule. This is *not* the octetStringMatch (2.5.13.17=
)
>>> matching rule.
>>
>> It is legal to use an octet string for certificateExactMatch. In
>> OpenLDAP the octet string is simply parsed and turned into a certifica=
te
>> assertion value and then matched as usual.
>
> It does not work for me with 2.4.22.
> It's a cert which was downloaded from the directory.

My mistake. See RFC4523. The filter must use a matching assertion value, =
it=20
cannot use the actual certificate.

--=20
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/