LDAP_STRONG_AUTH_REQUIRED sasl issue with open ldap.

Discussion in 'Perl' started by Durairaj Avasi, Apr 9, 2004.

  1. Here is my prg::::

    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 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
    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...
    Durairaj Avasi, Apr 9, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sasl_novice
    Replies:
    0
    Views:
    294
    sasl_novice
    May 30, 2008
  2. Amar

    LDAP and SASL

    Amar, Dec 28, 2005, in forum: ASP .Net Security
    Replies:
    3
    Views:
    163
    Joe Kaplan \(MVP - ADSI\)
    Dec 30, 2005
  3. Amar

    ASP.NET and SASL

    Amar, Jan 5, 2006, in forum: ASP .Net Security
    Replies:
    5
    Views:
    318
    Joe Kaplan \(MVP - ADSI\)
    Jan 6, 2006
  4. Durairaj Avasi

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

    Durairaj Avasi, Apr 9, 2004, in forum: Perl Misc
    Replies:
    1
    Views:
    156
    J. Gleixner
    Apr 9, 2004
  5. jean-charles Gibier

    Net::Ldap pb with SASL under multidomain MS Lan.

    jean-charles Gibier, Jul 21, 2008, in forum: Perl Misc
    Replies:
    2
    Views:
    96
    Jean-Charles Gibier
    Jul 21, 2008
Loading...

Share This Page