Brian Gaber wrote:
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"

Try using your second attempt but add a filter of "(objectClass=*)".

--
%%  Christopher A. Bongaarts   %%  c...@umn.edu          %%
%%  OIT - Identity Management  %%  http://umn.edu/~cab  %%
%%  University of Minnesota    %%  +1 (612) 625-1809    %%

Reply via email to