Fix for issue 3194 (ldapcompare should complain about extra arguments)
Add an extra check.
| | |
| | | SEVERE_ERR_STOPDS_DATETIME_ALREADY_PASSED_1669=The specified stop time '%s' \ |
| | | has already passed |
| | | |
| | | SEVERE_ERR_LDAPCOMPARE_FILENAME_AND_DNS_1670=Both entry DNs and a file name \ |
| | | were provided for the compare operation. These arguments are not compatible |
| | | |
| | | |
| | | |
| | |
| | | return 1; |
| | | } |
| | | |
| | | // If trailing DNs were provided and the filename argument was also |
| | | // provided, exit with an error. |
| | | if (!dnStrings.isEmpty() && filename.isPresent()) |
| | | { |
| | | err.println(wrapText(ERR_LDAPCOMPARE_FILENAME_AND_DNS.get(), |
| | | MAX_LINE_WIDTH)); |
| | | return 1; |
| | | } |
| | | |
| | | // parse the attribute string |
| | | int idx = attributeString.indexOf(":"); |
| | | if(idx == -1) |