Quote:
>How do I search for a specific DN inside of LDAP and return a
>Net::LDAP::Entry object?
>Apparently ($entry) =
>It can search for any other attribute inside LDAP just not DNs. Why?
DN isn't an attribute, so it can't be in the search filter.
Start the search at the desired DN, filter on anything, limit scope
to the base dn only:
$results = $ldap->search(base=>'uid=jkezer,blah..',
filter=>'(objectclass=*)',
scope=>'base');
die $results->error if $results->code;
$entry = $results->pop_entry;
--kag