LDAP_STRONG_AUTH_REQUIRED sasl issue with open ldap.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Durairaj Avasi

    LDAP_STRONG_AUTH_REQUIRED sasl issue with open ldap.

    Here is my prg::::

    use Net::LDAP qw(LDAP_SUCCESS LDAP_PROTOCOL_E RROR);
    use Authen::SASL;
    use Net::LDAP::Util qw(ldap_error_n ame 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(mechanis m => '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_CR EDENTIALS The wrong password was
    supplied or the SASL credentials could not be processed

    if i do a normal bind like

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

    ( NOTE without SASL )

    i am getting the following error

    ERROR detected: -> LDAP_STRONG_AUT H_REQUIRED The server requires
    authentication
    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...
Working...