In the immortal words of Noel Ashford:
> firewall# ldapsearch -x -b "dc=bhs,dc=local" -D "bhs\noel" -h 192.168.9.1 -p
> 389 -W "sAMAccountName=noel" -LLL | more
[...]
> $mesg = $ldap->bind( "cn=noel, o=Exchange, c=us", passsword =>
> "pass_for_noel");
You should check the result of the bind operation to see whether it
succeeded.
It looks to me like you're binding with a different DN in the
ldapsearch call vs. the perl call.
It looks like you have a different version of ldapsearch than I do,
which does not have -x or -W options, and -L is documented as "print
in LDIF format" which can be accomplished on the perl side with
Net::LDAP::LDIF.
%% Christopher A. Bongaarts %% [EMAIL PROTECTED] %%
%% Internet Services %% http://umn.edu/~cab %%
%% University of Minnesota %% +1 (612) 625-1809%%