| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * The position at which to wrap long lines. |
| | | */ |
| | | public static final int MAX_LINE_WIDTH = 79; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Parses the command-line arguments, establishes a connection to the |
| | |
| | | |
| | | |
| | | // Initialize the argument parser. |
| | | ArgumentParser argParser = new ArgumentParser(CLASS_NAME, false); |
| | | String toolDescription = getMessage(MSGID_LDAPPWMOD_TOOL_DESCRIPTION); |
| | | ArgumentParser argParser = new ArgumentParser(CLASS_NAME, toolDescription, |
| | | false); |
| | | |
| | | try |
| | | { |
| | |
| | | argParser.addArgument(ldapPort); |
| | | |
| | | |
| | | useSSL = new BooleanArgument("usessl", 'Z', "useSSL", |
| | | MSGID_LDAPPWMOD_DESCRIPTION_USE_SSL); |
| | | argParser.addArgument(useSSL); |
| | | |
| | | |
| | | useStartTLS = new BooleanArgument("usestarttls", 'q', "useStartTLS", |
| | | MSGID_LDAPPWMOD_DESCRIPTION_USE_STARTTLS); |
| | | argParser.addArgument(useStartTLS); |
| | | |
| | | |
| | | bindDN = new StringArgument("binddn", 'D', "bindDN", false, false, true, |
| | | "{bindDN}", null, null, |
| | | MSGID_LDAPPWMOD_DESCRIPTION_BIND_DN); |
| | |
| | | argParser.addArgument(currentPWFile); |
| | | |
| | | |
| | | useSSL = new BooleanArgument("usessl", 'Z', "useSSL", |
| | | MSGID_LDAPPWMOD_DESCRIPTION_USE_SSL); |
| | | argParser.addArgument(useSSL); |
| | | |
| | | |
| | | useStartTLS = new BooleanArgument("usestarttls", 'q', "useStartTLS", |
| | | MSGID_LDAPPWMOD_DESCRIPTION_USE_STARTTLS); |
| | | argParser.addArgument(useStartTLS); |
| | | |
| | | |
| | | sslBlindTrust = |
| | | new BooleanArgument("blindtrust", 'X', "trustAllCertificates", |
| | | MSGID_LDAPPWMOD_DESCRIPTION_BLIND_TRUST); |