Update the ldappasswordmodify tool to change the short identifier for the
--bindPasswordFile argument from -W to -j in order to be consistent with the
usage for all of the other command-line tools.
OpenDS Issue Number: 1022
| | |
| | | |
| | | |
| | | bindPWFile = |
| | | new FileBasedArgument("bindpwfile", 'W', "bindPasswordFile", false, |
| | | new FileBasedArgument("bindpwfile", 'j', "bindPasswordFile", false, |
| | | false, "{file}", null, null, |
| | | MSGID_LDAPPWMOD_DESCRIPTION_BIND_PW_FILE); |
| | | argParser.addArgument(bindPWFile); |
| | |
| | | |
| | | |
| | | provideDNForAuthzID = |
| | | new BooleanArgument("providednforauthzid", 'A',"provideDNForAuthZID", |
| | | new BooleanArgument("providednforauthzid", 'A',"provideDNForAuthzID", |
| | | MSGID_LDAPPWMOD_DESCRIPTION_PROVIDE_DN_FOR_AUTHZID); |
| | | argParser.addArgument(provideDNForAuthzID); |
| | | |
| | |
| | | |
| | | args = new String[] |
| | | { |
| | | "-W" |
| | | "-j" |
| | | }; |
| | | argLists.add(args); |
| | | reasonList.add("No value for '-W' argument"); |
| | | reasonList.add("No value for '-j' argument"); |
| | | |
| | | args = new String[] |
| | | { |
| | |
| | | args = new String[] |
| | | { |
| | | "-D", "cn=Directory Manager", |
| | | "-W", "no.such.file" |
| | | "-j", "no.such.file" |
| | | }; |
| | | argLists.add(args); |
| | | reasonList.add("Invalid bind password file path"); |
| | |
| | | { |
| | | "-D", "cn=Directory Manager", |
| | | "-w", "password", |
| | | "-W", currentPasswordFile |
| | | "-j", currentPasswordFile |
| | | }; |
| | | argLists.add(args); |
| | | reasonList.add("Both bind password and bind password file"); |
| | |
| | | |
| | | args = new String[] |
| | | { |
| | | "-W", currentPasswordFile |
| | | "-j", currentPasswordFile |
| | | }; |
| | | argLists.add(args); |
| | | reasonList.add("Bind password file without a DN"); |
| | |
| | | "-h", "127.0.0.1", |
| | | "-p", String.valueOf(TestCaseUtils.getServerLdapPort()), |
| | | "-D", "cn=Directory Manager", |
| | | "-W", currentPasswordFile, |
| | | "-j", currentPasswordFile, |
| | | "-a", "dn:uid=test.user,o=test", |
| | | "-N", newPasswordFile |
| | | }; |