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

Re: Search filter question



Please take general questions to the openldap-general
mailing list.  This post is not specific to openldap
software and certainly not a OpenLDAP development issue.

Kurt

At 06:17 PM 1/23/01 +0100, Pierre-Julien Grizel wrote:

>Hi,
>
>
>Suppose I've got a schema that looks like this :
>
>
>o=foo
>|
>+-- c=us
>|    |
>|    +-- sn=smith
>|    |
>|    +-- sn=jones
>|
>+-- c=uk
>|    |
>|    +-- sn=wazzup
>|    |
>|    +-- sn=jones
>|
>+-- ...
>
>
>It's not the actual schema I use - but it's only for explanation
>purposes.
>
>
>Suppose I want to list, with ONE filter, someone who's called "jones"
>and lives in uk, and someone who's called "smith" and lives in us. Of
>course, my sn=xxx objects don't support the c type...
>
>How can I do such a query ? I thought
>(|(&(c=uk)(sn=jones))(&(c=us)(sn=smith))) would work, but it doesn't, as
>my sn=xxx objects don't have the c=value.
>
>It's for optimization purposes, so it's necessary for me to do it with
>one single filter. Once again, don't try to tell me this example is
>silly, it IS. But it's far easier to understand that my actual schema.
>
>
>Any clues ?...
>
>
>
>
>Many thanks,
>
>
>
>P.-J.
>
>
>
>
>
>
>-- 
>If the only tool you have is a hammer, 
>    you tend to see every problem as a nail.
>Si le seul outil dont vous disposez est un marteau, 
>    vous avez tendance à voir chaque problème comme un clou. 
>                                       --Abraham Maslow