Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > ssue on Net::LDAP sasl issue on windows 2000.

Reply
Thread Tools

ssue on Net::LDAP sasl issue on windows 2000.

 
 
Durairaj Avasi
Guest
Posts: n/a
 
      04-09-2004
the following is a simple script with tries to bind on a Active
Directory.

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


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
 
Reply With Quote
 
 
 
 
J. Gleixner
Guest
Posts: n/a
 
      04-09-2004
Durairaj Avasi wrote:

> 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


Since this seems to be a very specific issue, possibly you may get more
help from: http://www.velocityreviews.com/forums/(E-Mail Removed)

Never used what you're trying to do, however a few queries with Google
turned up the source for cyrus-sasl:

ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/

And simply searching CPAN for "cyrus" found the perl module:

http://search.cpan.org/~adamson/Authen-SASL-Cyrus-0.07/

Hope that helps.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Net::Ldap pb with SASL under multidomain MS Lan. jean-charles Gibier Perl Misc 2 07-21-2008 07:59 PM
implementing user based sasl mechanism sasl_novice Java 0 05-30-2008 05:17 AM
ASP.NET and SASL Amar ASP .Net Security 5 01-06-2006 04:26 PM
LDAP and SASL Amar ASP .Net Security 3 12-30-2005 05:26 AM
LDAP_STRONG_AUTH_REQUIRED sasl issue with open ldap. Durairaj Avasi Perl 0 04-09-2004 02:08 PM



Advertisments