Re: LDAP Search for all attributes of a DN

Christopher Bongaarts <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.ldap
Organization University of Minnesota
Message-ID <[email protected]>
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   %%  [email protected]          %%
%%  OIT - Identity Management  %%  http://umn.edu/~cab  %%
%%  University of Minnesota    %%  +1 (612) 625-1809    %%
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.