[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: searching based on dn
No. The DN isn't an attribute, so you can't filter on
it. Use the DN you want as the base, a scope of base,
and a filter of "objectclass=*".
> -----Original Message-----
> From: Barry Ard [mailto:barry.ard@ualberta.ca]
> Sent: Thursday, March 01, 2001 6:27 PM
> To: openldap-general@OpenLDAP.org
> Subject: searching based on dn
>
>
> Can I do a search using a filter that specifies the dn directly.
> ex.
> $mesg = $ldap->search(
> base => "dc=ualberta,dc=ca",
> filter => "dn=uid=bard,dc=ualberta,dc=ca"
> );
>
> Attempting this returns 0 records although that is the dn of
> a record.
>
> Thanks,
> Barry
> =======================================================
> Barry Ard barry.ard@ualberta.ca
> Computing & Network Services
> University of Alberta
> Edmonton, AB
> Canada
>
>