ossible to have "cn" returned, but only these values, which actually matched the filter ? Or, is it possible to find out how many values of "cn" in particular entry, matched? While doing such search in some specified case, I'm interested only with values "cn=foo", "cn=foobar" and "cn=foobarX", I do not care what are other "cn" values, nor even there are other values of "cn" which didn't match, or not. Such feature seems complicated, because filter actually may be build with many attributes,
I don't think so; a search qualifies an object as a match to the filter, so you get the attributes from the matching object(s) that you requested.
- and only if some of them are specified in return attributes, the
matching values should be returned .
I don't understand what this means.