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

ldapsearch query.



Hello All,

    I want to retrieve all the entries that match a search filter
    and that are below that matched entry.  i.e if I have a tree
    as follows, then I should get all the entries under the subtrees
    which match "ou=local".

                                       o=co.Inc
                                            |
                   -----------------------
                   |                                                  |
            ou=finance                               ou=payroll
                   |                                                  |
             ou=local                                   ou=local
             |            |
|               |
             |            |
|               |
        cn=Bob   cn=Alice                 cn=Mary   cn=John



Can someone help me in getting the entries in a single search
instead of first getting all the entries that matches ou=local and
then searching for the entries that are under those subtrees.


Thanks in Advance.

Regards
Bandi.

begin:vcard 
n:Bandi;Sridhar
tel;home:91-80-5266263
tel;work:91-80-2052886
x-mozilla-html:FALSE
org:Hewlett Packard;SNSL India-ISEC
version:2.1
email;internet:bandis@india.hp.com
adr;quoted-printable:;;29c=3B HP=3B;bangalore;;560052;India
x-mozilla-cpt:;26624
fn:Sridhar Bandi
end:vcard