mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Ludovic Poitou
03.20.2010 723443b7d2d329924aef432240afd8a5073f657f
Fix defect OpenDJ-6 : Return protocol error when LDAPv2 is disabled and connection is done with LDAPv2
Issue #OPENDJ-6 - Wrong error returned when LDAPv2 is disabled
2 files modified
4 ■■■■ changed files
opends/src/server/org/opends/server/protocols/ldap/LDAPClientConnection.java 2 ●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/ldap/LDAPv2TestCase.java 2 ●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/protocols/ldap/LDAPClientConnection.java
@@ -1863,7 +1863,7 @@
      {
        BindResponseProtocolOp responseOp =
            new BindResponseProtocolOp(
                LDAPResultCode.INAPPROPRIATE_AUTHENTICATION,
                LDAPResultCode.PROTOCOL_ERROR,
                ERR_LDAPV2_CLIENTS_NOT_ALLOWED.get());
        sendLDAPMessage(new LDAPMessage(message.getMessageID(),
            responseOp));
opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/ldap/LDAPv2TestCase.java
@@ -98,7 +98,7 @@
      message = r.readMessage();
      BindResponseProtocolOp bindResponse = message.getBindResponseProtocolOp();
      assertEquals(bindResponse.getResultCode(),
                   LDAPResultCode.INAPPROPRIATE_AUTHENTICATION);
                   LDAPResultCode.PROTOCOL_ERROR);
    }
    finally
    {