Velocity Reviews

Velocity Reviews (
-   Perl (
-   -   LDAP_STRONG_AUTH_REQUIRED sasl issue with open ldap. (

Durairaj Avasi 04-09-2004 02:08 PM

LDAP_STRONG_AUTH_REQUIRED sasl issue with open ldap.
Here is my prg::::

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";

my $ldap = &lConnect('');
my $sasl = Authen::SASL->new(mechanism => 'DIGEST-MD5', password
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), " ",

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 i 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
be performed with a SASL mechanism

Tested with windows 2000 and windows xp getting the same error msg.

any input ???? thougts ?? will be good to see...

All times are GMT. The time now is 07:29 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.