[Date Prev][Date Next]
Comparisons using caseIgnoreOrderingMatch
I am investigating OpenLDAP for a project involving storing application
configuration information. I have defined an application version
attribute as a DirectoryString with caseIgnoreOrderingMatch ordering.
The version attributes hold strings of the form "3.04.008", "3.04.008b",
When use ldapsearch with a filter using "<=" or ">=" the 3.04.008b
versions are always ordered higher than those strings without the
trailing letter i.e. a search using a filter of (version>=3.04.008b)
will not list an entry with a version attribute with the value
My understanding was that the ordering should be lexicographical, but it
appears to be by length first, and lexicographical only within a given
Am I doing something wrong or is that the way it is supposed to be? Is
there an ordering that I can use that really gives "dictionary order"?
Thanks for your help.