Modify the code in order the adminPassword and the adminPasswordFile arguments in dsreplication to appear with the LDAP connection arguments.
| | |
| | | */ |
| | | public static final String OPTION_LONG_ADMIN_UID = "adminUID"; |
| | | |
| | | /** |
| | | * Long form of admin password. |
| | | */ |
| | | public static final String OPTION_LONG_ADMIN_PWD = "adminPassword"; |
| | | |
| | | /** |
| | | * Long form of admin password file. |
| | | */ |
| | | public static final String OPTION_LONG_ADMIN_PWD_FILE = "adminPasswordFile"; |
| | | |
| | | /** |
| | | * Long form of report authorization ID connection option. |
| | |
| | | secureArgsList.adminUidArg.setHidden(false); |
| | | defaultArgs.add(index++, secureArgsList.adminUidArg); |
| | | |
| | | secureArgsList.bindPasswordArg = new StringArgument("adminPassword", |
| | | OPTION_SHORT_BINDPWD, "adminPassword", false, false, true, |
| | | secureArgsList.bindPasswordArg = new StringArgument( |
| | | OPTION_LONG_ADMIN_PWD.toLowerCase(), |
| | | OPTION_SHORT_BINDPWD, OPTION_LONG_ADMIN_PWD, false, false, true, |
| | | INFO_BINDPWD_PLACEHOLDER.get(), null, null, |
| | | INFO_DESCRIPTION_REPLICATION_ADMIN_BINDPASSWORD.get()); |
| | | defaultArgs.add(index++, secureArgsList.bindPasswordArg); |
| | | |
| | | secureArgsList.bindPasswordFileArg = new FileBasedArgument( |
| | | "adminPasswordFile", |
| | | OPTION_SHORT_BINDPWD_FILE, "adminPasswordFile", false, false, |
| | | OPTION_LONG_ADMIN_PWD_FILE.toLowerCase(), |
| | | OPTION_SHORT_BINDPWD_FILE, OPTION_LONG_ADMIN_PWD_FILE, false, false, |
| | | INFO_BINDPWD_FILE_PLACEHOLDER.get(), null, null, |
| | | INFO_DESCRIPTION_REPLICATION_ADMIN_BINDPASSWORDFILE.get()); |
| | | defaultArgs.add(index++, secureArgsList.bindPasswordFileArg); |
| | |
| | | OPTION_LONG_CERT_NICKNAME.equals(longId) || |
| | | OPTION_LONG_REFERENCED_HOST_NAME.equals(longId) || |
| | | OPTION_LONG_ADMIN_UID.equals(longId) || |
| | | OPTION_LONG_ADMIN_PWD.equals(longId) || |
| | | OPTION_LONG_ADMIN_PWD_FILE.equals(longId) || |
| | | OPTION_LONG_REPORT_AUTHZ_ID.equals(longId) || |
| | | OPTION_LONG_USE_PW_POLICY_CTL.equals(longId) || |
| | | OPTION_LONG_USE_SASL_EXTERNAL.equals(longId) || |
| | |
| | | private ArrayList<Argument> args = new ArrayList<Argument>(); |
| | | private HashSet<Argument> obfuscatedArgs = new HashSet<Argument>(); |
| | | |
| | | // The value used to display arguments that must be obfuscated (such as |
| | | // passwords). This does not require localization (since the output of |
| | | // command builder by its nature is not localized). |
| | | private final static String OBFUSCATED_VALUE = "******"; |
| | | /** |
| | | * The value used to display arguments that must be obfuscated (such as |
| | | * passwords). This does not require localization (since the output of |
| | | * command builder by its nature is not localized). |
| | | */ |
| | | public final static String OBFUSCATED_VALUE = "******"; |
| | | |
| | | /** |
| | | * The constructor for the CommandBuilder. |