[Zhang Weiwu]
> It is pertty strange that ldapsearch always return 0 results for
> postalAddress search like this:
>
> postalAddress=*a*

[Dieter Kluenter]
> As far as I know, there are no rules for substring indexing of
> postalAddress values.

Well, OpenLDAP does not seem to implement one yet, anyway.

The LDAP standard says postalAddress uses caseIgnoreListSubstringsMatch,
which it does not define:-) The upcoming revision will add it.

Mike Jackson]
> (varified there are a lot of entries with at least one 'a' in it)
>
> 1. you need to have a substring index for postalAddress

No - an index is an optimization, not an enhancement.  It can reduce the
number of entries the server must examine in detail during a search.

So if an unindexed search returned success, an index can speed it up but
not make it find more entries.  OTOH, if a search returned a search
limit failure, an index can help it succeed and return entries.

> 2. substring indexes are generally only searchable by three characters
> minimum

...which means that the server cannot not use the index (if there was
one), so it must examine each entry in the searh scope.

Anyway, to test if a particular filter can find a particular entry,
you can search that entry's DN with search scope "base".

-- 
Hallvard

---
You are currently subscribed to [email protected] as: [EMAIL PROTECTED]
To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the 
SUBJECT of the message.

Reply via email to