Make a number of changes to the encode-password tool:
- It is no longer necessary to specify the password storage scheme separately
from the encoded value when comparing an encoded password. This makes this
feature easier to use because it takes the data in the same format as is
created by when encoding a clear-text password and as is stored in the
directory. Issue #971.
- When comparing a clear-text password against an encoded version, you can now
use the --useCompareResultCode option to cause the tool to exit with a return
code of COMPARE_TRUE or COMPARE_FALSE, which is more useful when calling the
utility in a script. Previously, it would always return zero to indicate
that the script completed successfully, regardless of whether the provided
password matched or not. Issue #988.
- I've made the tool easier to call programmatically by adding additional
methods that can be used to invoke it, by making it possible to avoid
reinitializing the server, to provide alternate output and error streams (or
eliminate the output entirely), and to return an integer value rather than
using System.exit. This all kind of falls under the umbrella of issue #987.