LDAP Search for all attributes of a DN

Brian Gaber <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.ldap
Message-ID <37CAD44053C7CA4EA6E242DF34594A6306651B1421@MB-NCR-128.ad.pwgsc-tpsgc.gc.ca>
I have tried these two Net::LDAP approaches, but $numEnt is zero in both cases:

$mesg = $ldap->search( base => $dn );
$numEnt = $mesg->count;

$mesg = $ldap->search ( base => $dn, scope => 'base',);
$numEnt = $mesg->count;

A command line ldapsearch like so works fine:

ldapsearch -h my_ldap_server -x -b "fully qualfied dn"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.