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

Ludovic Poitou
28.23.2010 725e20b114d39b8406abe70363c737570bcd5b32
Fixed GSSAPI bug when detecting the end of the multi-stage bind process.

1 files modified
8 ■■■■ changed files
sdk/src/org/opends/sdk/requests/GSSAPISASLBindRequestImpl.java 8 ●●●● patch | view | raw | blame | history
sdk/src/org/opends/sdk/requests/GSSAPISASLBindRequestImpl.java
@@ -138,14 +138,12 @@
      @Override
      public Boolean run() throws ErrorResultException
      {
        if (lastResult.getResultCode() == ResultCode.SASL_BIND_IN_PROGRESS
            && lastResult.getServerSASLCredentials() != null)
        {
          try
          {
            setNextSASLCredentials(saslClient.evaluateChallenge(lastResult
              .getServerSASLCredentials() == null ? new byte[0] : lastResult
                .getServerSASLCredentials().toByteArray()));
            return false;
          return saslClient.isComplete();
          }
          catch (final SaslException e)
          {
@@ -158,8 +156,6 @@
                .setCause(e));
          }
        }
        return true;
      }
    };