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

neil_a_wilson
20.27.2006 fdfa1fccb1835d93da4f6da90549975b228972be
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
2 files modified
16 ■■■■ changed files
opends/src/server/org/opends/server/tools/LDAPPasswordModify.java 4 ●●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPPasswordModifyTestCase.java 12 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/tools/LDAPPasswordModify.java
@@ -224,7 +224,7 @@
      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);
@@ -237,7 +237,7 @@
      provideDNForAuthzID =
           new BooleanArgument("providednforauthzid", 'A',"provideDNForAuthZID",
           new BooleanArgument("providednforauthzid", 'A',"provideDNForAuthzID",
                    MSGID_LDAPPWMOD_DESCRIPTION_PROVIDE_DN_FOR_AUTHZID);
      argParser.addArgument(provideDNForAuthzID);
opends/tests/unit-tests-testng/src/server/org/opends/server/tools/LDAPPasswordModifyTestCase.java
@@ -139,10 +139,10 @@
    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[]
    {
@@ -210,7 +210,7 @@
    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");
@@ -219,7 +219,7 @@
    {
      "-D", "cn=Directory Manager",
      "-w", "password",
      "-W", currentPasswordFile
      "-j", currentPasswordFile
    };
    argLists.add(args);
    reasonList.add("Both bind password and bind password file");
@@ -280,7 +280,7 @@
    args = new String[]
    {
      "-W", currentPasswordFile
      "-j", currentPasswordFile
    };
    argLists.add(args);
    reasonList.add("Bind password file without a DN");
@@ -1053,7 +1053,7 @@
      "-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
    };