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

matthew_swift
14.30.2009 4371795418de3f7908de0a4dfc4a05707d28fb38
Fix issue 3638 - Referrals not properly managed for bind operations
2 files modified
14 ■■■■■ changed files
opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendBindOperation.java 12 ●●●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/core/BindOperationTestCase.java 2 ●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendBindOperation.java
@@ -545,9 +545,21 @@
        }
        userEntry = null;
        if (de.getResultCode() == ResultCode.REFERRAL)
        {
          // Re-throw referral exceptions - these should be passed back
          // to the client.
          throw de;
        }
        else
        {
          // Replace other exceptions in case they expose any sensitive
          // information.
        throw new DirectoryException(ResultCode.INVALID_CREDENTIALS,
                                     de.getMessageObject());
      }
      }
      if (userEntry == null)
      {
opends/tests/unit-tests-testng/src/server/org/opends/server/core/BindOperationTestCase.java
@@ -1860,7 +1860,7 @@
   *
   * @throws  Exception  If an unexpected problem occurs.
   */
  @Test(enabled=false)
  @Test()
  public void testSimpleBindReferral()
         throws Exception
  {