[turba] Re: LDAP scope

Edward Rudd eddie at omegaware.com
Mon Feb 21 18:36:53 PST 2005


On Sun, 20 Feb 2005 20:37:38 -0600, Edwin L. Culp wrote:

[snip]
> 
> AFAIK, the ldap driver doesn't contemplate the -s option.  Is the -s option
> standard?  That I don't know either.

The Driver/ldap.php in Turba does not currently. But the scope is a
standard functionality of LDAP. however PHP's ldap API is awkward in
implementing it as it splits it to several functions.

ldap_search => scope "sub"
this will search the current base dn in the search and ALL children.

ldap_list => scope "one"
this will search just the direct descendants of the the base DB in the
search. (which is what Craig is wanting

ldap_read => scope "base"
this will just return back the basedn's entry (not really a search, but a
FAST get for one entry)

Regards,
Edward Rudd



More information about the turba mailing list