Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Matching Rules

Status
Not open for further replies.

BChardon

Programmer
Jun 24, 2005
4
FR
Hello,

Does anybobdy know where I could find the set of all the matching rules that can be applied on a LDAP search ? My purpose is to find a sort of "trimZeros" rule (so that my search can return '000345' and '00000000345' -attributes are of type String- when I query with the parameter '345'). I read about numericStringOrdering, but this is not what I want.

Any help would be more that welcome.

Thank you,
Bertrand.
 
The matching rule is defined in the rfc2254 updated for ldapv3. (It may be I'm not as updated and need be as well.)

I do not think there is a construction to meet this need. Power may not be the foremost preoccupation for the functionality.

I would say, use something like (attrib=*345). The more info and the knowledge of it you feed into it, the narrower the resultant set, like 0*345 (for at least one leading 0), 00*345 (for at least two etc).

Then upon the resultant set, make a further validation for that particular attribute. Now, at this stage, you would have more freedom to construction matching/filtering.

 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top