Bingo. Adding that line showed me I was not binding correctly. I was
able to fix the problem.
I'm learning as I go so I appreciate the help.
Christopher A Bongaarts wrote:
You don't know if you're binding correctly, as you're not checking the
return value from the search. Try adding, between these lines:
$mesg = $ldap->search(filter=>"(OU=SubOU,OU=myOU)",
base=>"dc=ad,dc=myorg,dc=edu");
die $mesg->error() if $mesg->code();
@entries = $mesg->entries;
to make it actually give you more information about why your search is
returning no entries.