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

neil_a_wilson
31.23.2006 c49b083aacb640688172046bc729f828e45ffa1b
Update the LDAPCompare tool so that it will exit with an error if no entry DNs
were provided (either from a DN file or as trailing command-line arguments that
appear after the attribute-value assertion).

OpenDS Issue Number: 902
1 files modified
8 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/tools/LDAPCompare.java 8 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/tools/LDAPCompare.java
@@ -512,6 +512,14 @@
      dnStrings.add(s);
    }
    // If no DNs were provided, then exit with an error.
    if (dnStrings.isEmpty())
    {
      int msgID = MSGID_LDAPCOMPARE_NO_DNS;
      err.println(getMessage(msgID));
      return 1;
    }
    // parse the attribute string
    int idx = attributeString.indexOf(":");
    if(idx == -1)