[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: searching based on dn
Jeff Costlow wrote:
>
> Is the below faster than searching like this:
>
> $mesg = $ldap->search(
> base => "dc=alberta,dc=ca",
> filter => "uid=bard",
> scope => "base" );
>
> Or are they the same?
This query won't find any entries (assuming that dc=alberta,dc=ca has no
attribute "uid" with a value of "bard"). If you use a scope of "base"
only the entry specified by base is searched.
--
Norbert Klasen
DFN Directory Services tel: +49 7071 29 70335
ZDV, Universität Tübingen fax: +49 7071 29 5912
Wächterstr. 76, 72074 Tübingen http://www.directory.dfn.de
Germany norbert.klasen@zdv.uni-tuebingen.de