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

Re: Search for mail attribute fails



Andreas Heilwagen wrote:
But looking for mail addresses (simplified form of a Mozilla LDAP query) fails:

  ldapsearch -x -b "dc=office-b,dc=jamba,dc=net" "(mail=j*)"

The entry at the end of the mail should show up as answer to the mail query. The only reference to the mail attribute in my slapd.conf is

  index           mail eq

Any idea what precondition has to be fulfilled to get an answer to the query for a mail address (debian woody, openldap 2.0.23)?

This may not be your whole problem, but you are performing a substring search on an attribute that has only been indexed for equality. Try


index	mail eq,sub

Jon Roberts
www.mentata.com