Re: LDAP Search for all attributes of a DN

[email protected] (Christopher Bongaarts)
Newsgroups perl.ldap
Organization University of Minnesota
Message-ID <[email protected]>
Brian Gaber wrote:
>> Try using your second attempt but add a filter of "(objectClass=*)".
> 
> I tried this and still do not get expected return
> 
> $mesg = $ldap->search(
>                     base   => $dn,
>                     scope  => 'base',
>                     filter => '(objectClass=*)',
> );

Is the search succeeding or failing?  Add something like this:

   $mesg->code && die $mesg->error;


> Both of these command line searches work:
> 
> ldapsearch -h ldap_host -x -s sub -b "dn"
> ldapsearch -h ldap_host -x -b "dn"


-- 
%%  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.