[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Different indices in different contexts
>Hello all,
>
>I've got the following setup...
>
>ou=users,dc=arts,dc=ed,dc=ac,dc=uk
>ou=machines,dc=arts,dc=ed,dc=ac,dc=uk
>
>and I'd like to index them differently. Here's a snippet of my
>slapd.conf file...
>
>======================================================================
>database ldbm
>suffix "ou=Machines,dc=arts,dc=ed,dc=ac,dc=uk"
>directory /var/state/openldap/arts/machines
>index mac,cn eq
>
>database ldbm
>suffix "ou=Users,dc=arts,dc=ed,dc=ac,dc=uk"
>directory /var/state/openldap/arts/users
>index uid,uidnumber eq
>index default none
>======================================================================
>
>However, when I search the database I only see objects from the
>context which appears first in the slapd.conf. Swapping their order
>makes the other context visible.
>
>Is there something obvious I'm doing wrong or is this plainly not
>supported?
select_backend functions selects _only_first_ backend, that matches your
search suffix. Second database will never be searched, if your suffix is a
part of BOTH suffixes. only first match :)
afair :)