From: Christoph N. <en...@ap...> - 2001-05-22 23:25:40
|
Brian, That is the "official" way to retrieve a specific DN. What I have never understood is why I needed to specify a filter if I'm doing a "base" search. I'm sure there is some good explanation for that. - Christoph On Tue, 22 May 2001, Brian Safford wrote: > The only way I've found I can retrieve an entry if the only thing I know is the distinguished name is as follows: > > $dn = 'cn=last name,ou=messaging,o=eds,c=us'; > > $result = $ldap->search( base => $dn, > scope => 'base', > filter => '(objectclass=*)', > callback => \&Display, > ); > > I can substitute other attributes for 'objectclass' provided a value exists. > > Is there any other way? Seems like it should be easier than this, but perhaps this isn't really that difficult... > > Regards, > > Brian Safford > Consultant, Senior > Perimeter Messaging > EDS E.solutions Messaging Services > |