| | |
| | | import static com.forgerock.opendj.ldap.tools.Utils.printSuccessMessage; |
| | | import static com.forgerock.opendj.ldap.tools.Utils.readAssertionControl; |
| | | import static com.forgerock.opendj.ldap.tools.Utils.readControls; |
| | | import static com.forgerock.opendj.ldap.tools.Utils.ensureLdapProtocolVersionIsSupported; |
| | | import static com.forgerock.opendj.ldap.tools.Utils.printErrorMessage; |
| | | import static com.forgerock.opendj.cli.CommonArguments.*; |
| | | |
| | |
| | | import com.forgerock.opendj.cli.BooleanArgument; |
| | | import com.forgerock.opendj.cli.ConnectionFactoryProvider; |
| | | import com.forgerock.opendj.cli.ConsoleApplication; |
| | | import com.forgerock.opendj.cli.IntegerArgument; |
| | | import com.forgerock.opendj.cli.StringArgument; |
| | | |
| | | /** |
| | |
| | | BooleanArgument continueOnError; |
| | | BooleanArgument noop; |
| | | BooleanArgument showUsage; |
| | | IntegerArgument ldapProtocolVersion; |
| | | StringArgument assertionFilter; |
| | | StringArgument controlStr; |
| | | StringArgument filename; |
| | |
| | | controlStr = controlArgument(); |
| | | argParser.addArgument(controlStr); |
| | | |
| | | ldapProtocolVersion = ldapVersionArgument(); |
| | | argParser.addArgument(ldapProtocolVersion); |
| | | |
| | | continueOnError = continueOnErrorArgument(); |
| | | argParser.addArgument(continueOnError); |
| | | |
| | |
| | | if (argParser.usageOrVersionDisplayed()) { |
| | | return ResultCode.SUCCESS.intValue(); |
| | | } |
| | | ensureLdapProtocolVersionIsSupported(ldapProtocolVersion); |
| | | |
| | | controls = readControls(controlStr); |
| | | if (proxyAuthzID.isPresent()) { |