Re: LDAP Search Scope / Schema Retrieval
| From: | Matt Rohrer | Date: | Thu, 16 May 2002 18:40:18 +0000 |
| Subject: | Re: LDAP Search Scope / Schema Retrieval | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97948@lists.php.net to get a copy of this message | ||
On Thu, May 16, 2002 at 09:34:16AM -0500, D Canfield wrote:
> Two related questions:
>
> 1) Is there any work being done to support the retrieval of the LDAP
> schema in PHP (similar to Perl's Net::LDAP::Schema)? Is there any other
> good way to get this information into PHP?
>
> 2) Is there any way to change the search scope of an LDAP search in
> PHP? Specifically, the following OpenLDAP search command will fetch the
> schema from the server:
> ldapsearch -s base -x -b 'cn=subschema' objectclass=* +
> But, I can find no way to switch the search scope from SUB to BASE, so
> the equivalent call in PHP won't work.
>
> Any suggestions?
look into ldap_read() and the optional arguments to ldap_search()
matt