my $ldap = Net::LDAP->new($host) or die "$@";
my $mesg = $ldap->search (
base => "$dn",
scope => 'base',
filter => "(objectClass=Top)"
);
print Net::LDAP::Util::ldap_error_text($mesg->code),"\n" if $mesg->code;
foreach my $entry ($mesg->all_entries) {
$entry->dump;
}
On Wed, 28 Nov 2001, Joseph Kezar wrote:
> I am trying to find some sort of function to search for a particular
> DN and return a Net::LDAP::Entry.
>
> Say I know dn='cn=Joseph Kezar + uid=jkezar,ou=People,o=Vermont
> Department of Corrections,c=US'
>
> I want to be able to search for this specific record and return an Entry
> object.
> How can I do this?
>
>
> --
> Joseph Kezar
>
|