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

Jean-Noel Rouvignac
01.07.2013 95f8663a680751c8a94bac1083eef01ae822ad5b
OPENDJ-778 ldif-diff should exit with different values w.r.t files are identical or not 

EncodePassword.java:
Fixed a little bug introduced in previous commit (missing one output message)
1 files modified
28 ■■■■ changed files
opends/src/server/org/opends/server/tools/EncodePassword.java 28 ●●●● patch | view | raw | blame | history
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) {