| | |
| | | protected String getBindPassword(String dn, OutputStream out, |
| | | OutputStream err, StringArgument pwdArg, FileBasedArgument fileArg) |
| | | { |
| | | String bindPasswordValue = null; |
| | | if (fileArg.isPresent()) |
| | | { |
| | | return fileArg.getValue(); |
| | | } |
| | | else if (pwdArg.isPresent()) |
| | | { |
| | | bindPasswordValue = pwdArg.getValue(); |
| | | } |
| | | if ((bindPasswordValue != null && "-".equals(bindPasswordValue)) |
| | | || bindPasswordValue == null) |
| | | |
| | | String bindPasswordValue = pwdArg.isPresent() ? pwdArg.getValue() : null; |
| | | if (bindPasswordValue == null || "-".equals(bindPasswordValue)) |
| | | { |
| | | // Read the password from the STDin. |
| | | try |
| | |
| | | setNoPropertiesFileArgument(noPropertiesFileArg); |
| | | set.add(noPropertiesFileArg); |
| | | |
| | | |
| | | return set; |
| | | } |
| | | |
| | |
| | | ArgumentGroup argGroup) |
| | | throws ArgumentException |
| | | { |
| | | |
| | | for (Argument arg : args) |
| | | { |
| | | addGlobalArgument(arg, argGroup); |