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

Jean-Noel Rouvignac
01.07.2013 eb52005d89f1502ecb86f81c2e5f36788033fccc
opendj-sdk/opends/src/server/org/opends/server/tools/EncodePassword.java
@@ -644,11 +644,7 @@
        }
        final boolean authPasswordMatches =
            storageScheme.authPasswordMatches(clearPW, authInfo, authValue);
        if (authPasswordMatches)
        {
          Message message = INFO_ENCPW_PASSWORDS_MATCH.get();
          out.println(message);
        }
        out.println(getOutputMessage(authPasswordMatches));
        if (useCompareResultCode.isPresent())
        {
          return authPasswordMatches ? COMPARE_TRUE : COMPARE_FALSE;
@@ -726,16 +722,7 @@
        boolean passwordMatches =
            storageScheme.passwordMatches(clearPW, ByteString
                .valueOf(encodedPWString));
        if (passwordMatches)
        {
          Message message = INFO_ENCPW_PASSWORDS_MATCH.get();
          out.println(message);
        }
        else
        {
          Message message = INFO_ENCPW_PASSWORDS_DO_NOT_MATCH.get();
          out.println(message);
        }
        out.println(getOutputMessage(passwordMatches));
        if (useCompareResultCode.isPresent())
        {
          return passwordMatches ? COMPARE_TRUE : COMPARE_FALSE;
@@ -842,6 +829,17 @@
  private static Message getOutputMessage(boolean passwordMatches)
  {
    if (passwordMatches)
    {
      return INFO_ENCPW_PASSWORDS_MATCH.get();
    }
    return INFO_ENCPW_PASSWORDS_DO_NOT_MATCH.get();
  }
  private static boolean
          initializeServerComponents(DirectoryServer directoryServer,
                                     PrintStream err) {