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

RE: searching based on dn



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?
(I assume the answer will be valid for both perl and for C APIs, and I'm assuming the answer will be relevant to an OpenLDAP server, not anyone else's implementation.)

(I switched the message over to the openldap-software mailing list, as I think it might be more appropriate there)

-----Original Message-----
From: Norbert Klasen [mailto:klasen@zdv.uni-tuebingen.de]
Sent: Friday, March 02, 2001 1:21 AM
To: Barry Ard
Cc: openldap-general@OpenLDAP.org
Subject: Re: searching based on dn




Barry Ard wrote:
> Can I do a search using a filter that specifies the dn directly.

use
$mesg = $ldap->search(
	base   => "dn=uid=bard,dc=ualberta,dc=ca",
	filter => "objectclass=*",
	scope  => "base" );

-- 
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