[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openldap-general
Subject:    RE: searching based on dn
From:       Gary Williams <Gary.Williams () sas ! com>
Date:       2001-03-02 12:21:09
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic