On 24/5/04 10:09 pm, Shekhawat Raj <[EMAIL PROTECTED]> wrote:
>> I am runninga simple win2k an getting the follwoing error> Please help
>> me. thanks in advance
>>
>> ------------------
>> Return code: 49 Message: LDAP_INVALID_CREDENTIALS :The wrong password
>> was supplied or the SASL creden
>> MessageID: 1 DN: Total entries returned: 0
>> ----------------------------
>>
>> _______code------------------
>>
>> #!/usr/bin/perl
>>
>> use strict;
>> use Net::LDAP;
>> use Authen::SASL;
>> #use Net::LDAP::Constant qw(LDAP_CONTROL_PAGED);
>> use Net::LDAP::Util qw( ldap_error_name
>> ldap_error_text) ;
>>
>>
>> my $ad = Net::LDAP->new("ddxmoline3.jdnet.deere.com") or die "Could
>> not connect!";
>>
>>
>> my $mesg = $ad->bind("[EMAIL PROTECTED]",
>> password=>"<password>", version => 3);
The LDAP simple bind operation uses a *DN* to identify the user, not an
email address.
SASL binds often involve something that looks like an email address (more
strictly, it is a [EMAIL PROTECTED]) so perhaps you want to do a SASL bind
instead?
Cheers,
Chris