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

Re: ldapsearch query.



Hi Sridhar,

Try

ldapsearch -h <hostname> -p <port> -b "ou=local,ou=finance,o=co.lnc" '(objectclass=*)'

BR,

Joaquin

On jueves, octu 23, 2003, at 16:40 Europe/Madrid, Sridhar Bandi wrote:

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.


<bandis.vcf>