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

Multiple blanks in indexed directory strings



When storing a directory string, e.g. a value for attribute "cn" with
leading, trailling or multiple embedded blanks, I cannot retrieve this
string using equality-matching. This is true, when the attribute is
indexed. 

If I do not index the attribute, then I can retrieve such values as
expected, i.e. the search ignores any leading trailing or embedded
multiple blanks. E.g. if I store the directory string: 

   "      funny    value    " 

in a non-indexed attribute, say 'attr', then any of the following
filters (equality-)matches:

"attr=funny value"
"attr= funny       value "
"attr=      funny    value    "

I'm using OpenLDAP 2.0.21, 2.0.23, 2.0.27 with ldbm backend (GNU and
Berkely) on Debian GNU/Linux stable/testing/unstable i386 and RedHat
Linux 7.1/Alpha, 7.2/Alpha.


Tom