| | |
| | | .get(); |
| | | final ArgumentParser argParser = new ArgumentParser( |
| | | LDAPPasswordModify.class.getName(), toolDescription, false); |
| | | ArgumentParserConnectionFactory connectionFactory; |
| | | ConnectionFactoryProvider connectionFactoryProvider; |
| | | ConnectionFactory connectionFactory; |
| | | |
| | | FileBasedArgument currentPWFile; |
| | | FileBasedArgument newPWFile; |
| | |
| | | |
| | | try |
| | | { |
| | | connectionFactory = new ArgumentParserConnectionFactory(argParser, this); |
| | | connectionFactoryProvider = |
| | | new ConnectionFactoryProvider(argParser, this); |
| | | propertiesFileArgument = new StringArgument("propertiesFilePath", null, |
| | | OPTION_LONG_PROP_FILE_PATH, false, false, true, |
| | | INFO_PROP_FILE_PATH_PLACEHOLDER.get(), null, null, |
| | |
| | | try |
| | | { |
| | | argParser.parseArguments(args); |
| | | connectionFactory.validate(); |
| | | connectionFactory = |
| | | connectionFactoryProvider.getAuthenticatedConnectionFactory(); |
| | | } |
| | | catch (final ArgumentException ae) |
| | | { |