Re: LDAP_SCOPE_SUBTREE
| From: | Ignacio Vazquez-Abrams | Date: | Sun, 26 Nov 2000 05:04:22 +0000 |
| Subject: | Re: LDAP_SCOPE_SUBTREE | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27234@lists.php.net to get a copy of this message | ||
On Sun, 26 Nov 2000, Corisen wrote:
> thanks for your reply.
>
> suppose i have:
> dn: dc=company, dc=com <--root /1st level
> dn: o=branch1, dc=company, dc=com <-2nd level
> dn: ou=deparment1, o=branch1, dc=company, dc=com <--3rd level
>
> how can i limit the search to only 2nd level (o=branch1, dc=company, dc=com)
> using php ldap_search?
>
> ----- Original Message -----
> From: Ignacio Vazquez-Abrams <ignacio@openservices.net>
> To: Corisen <csyap@starnet.gov.sg>
> Cc: <php-general@lists.php.net>
> Sent: Sunday, November 26, 2000 12:56 PM
> Subject: Re: [PHP] LDAP_SCOPE_SUBTREE
>
>
> > On Sun, 26 Nov 2000, Corisen wrote:
> >
> > > hi, the following ldap_search desription was given in the php manual:
> > > "ldap_search() performs the search for a specified filter on the
> directory
> > > with the scope of LDAP_SCOPE_SUBTREE."
> > >
> > > pls advice how can i change the LDAP_SCOPE_SUBTREE to limit the search
> to
> > > only one level in a subtree.
> > >
> > > thanks.
> > >
> >
> > Read a bit further:
> >
> > "base_dn specifies the base DN for the directory."
> >
> > --
> > Ignacio Vazquez-Abrams <ignacio@openservices.net>
> >
>
Pass "o=branch1, dc=company, dc=com" as base_dn, no?
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>