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

Re: substring search problem



malini wrote:

> Is it a matching rule problem?


The equality for employes is distinguishedNameMatch, is it correct for substring search?



Why dont u try

       EQUALITY caseIgnoreMatch
       SUBSTR caseIgnoreSubstringsMatch

----- Original Message ----- From: "MESSNER D" <messner_d@yahoo.fr>
To: <OpenLDAP-software@OpenLDAP.org>
Sent: Tuesday, June 15, 2004 1:52 PM
Subject: substring search problem





Hello I want to do a search in a multi valued attribute in that base:

ou=agence

objectclass:agency
o=Lille
employes: uid=dupont,ou=employes,dc=xxx
               uid=dmessner,ou=employes,dc=xxx
               uid=durant,ou=employes,dc=xxx
               uid=henri,ou=employes,dc=xxx


objectclass:agency o=Marseille employes: uid=richard,ou=employes,dc=xxx uid=paul,ou=employes,dc=xxx uid=jack,ou=employes,dc=xxx uid=pierre,ou=employes,dc=xxx


I want to search the object with (&(objectclass=agency)(employes="uid=dmessner*") and I don't know why it doesn't work
It works with (&(objectclass=agency)(o=L*)) but I don't want to find an agency by its name but by the employee into it.
Is it a matching rule problem?
The equality for employes is distinguishedNameMatch, is it correct for substring search?






---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.686 / Virus Database: 447 - Release Date: 5/14/2004




Can I use these kind of matching rule if the syntax of the attribut is distinguished Name??:

EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch