From: [EMAIL PROTECTED]

Here is a simple script ... i am having very hard time here...

This is my program

use Net::LDAP qw(LDAP_SUCCESS LDAP_PROTOCOL_ERROR);
use Authen::SASL;
use Net::LDAP::Util qw(ldap_error_name ldap_error_text);

sub lConnect {
        my $server = shift;
        print " the server name is $server\n";
        my $ldap = Net::LDAP->new($server, port=> 389, version => 3);
        print "=== The error is $@ <====\n";
        return($ldap);
}

my $ldap = &lConnect('111.11.11.1');
my $sasl = Authen::SASL->new(mechanism => 'DIGEST-MD5', password
=>'xyzabc');
my $isBinded = $ldap->bind ('cn=durairaj avasi,ou=itdev,dc=cow,dc=net',
sasl => $sasl, version => 3);#
print "ERROR detected: -> ", ldap_error_name($isBinded->code), " ",
ldap_error_text($isBinded->code);

the above program returns the following::

ERROR detected: -> LDAP_INVALID_CREDENTIALS The wrong password was
supplied or the SASL credentials could not be processed

if do a normal bind like

$ldab->bind($mydn, password=>$password, version => 3);

( NOTE without SASL )

i am getting the following error

ERROR detected: -> LDAP_STRONG_AUTH_REQUIRED The server requires
authentication
be performed with a SASL mechanism

Note the:: the crendtials are correct .. i use the same credential with
all my rest of the applications but pointing different server.


Tested with windows 2000 and windows xp getting the same error msg.
I have installed 8xx-builds on Windows 2000 and windows xp and tested on both ... i am 
facing same
issue with both the application.

what i am doing wrong here.... some say that i should install
perl-cyrus-sasl-0.02... but i am unable to find that module for 8xx
environment________________________________________________________________________
The information contained in this message may be privileged and confidential and 
protected from disclosure.  If the reader of this message is not the intended 
recipient, or an employee or agent responsible for delivering this message to the 
intended recipient, you are hereby notified that any dissemination, distribution or 
copying of this communication is strictly prohibited. If you have received this 
communication in error, please notify us immediately by replying to the message and 
deleting it from your computer.

Notice required by law:  This e-mail may constitute an advertisement or solicitation 
under U.S. law, if its primary purpose is to advertise or promote a commercial product 
or service.   You may choose not to receive advertising and promotional messages from 
Ernst & Young LLP (except for Ernst & Young Online and the ey.com website, which track 
e-mail preferences through a separate process) at this e-mail address by forwarding 
this message to [EMAIL PROTECTED]  If you do so, the sender of this message will be 
notified promptly. Our principal postal address is 5 Times Square, New York, NY 10036. 
Thank you.  Ernst & Young LLP

Reply via email to