| | |
| | | StringArgument effectiveRightsAttrs = null; |
| | | StringArgument propertiesFileArgument = null; |
| | | BooleanArgument noPropertiesFileArgument = null; |
| | | BooleanArgument subEntriesArgument = null; |
| | | |
| | | |
| | | // Create the command-line argument parser for use with this program. |
| | |
| | | controlStr.setPropertyName("control"); |
| | | argParser.addArgument(controlStr); |
| | | |
| | | subEntriesArgument = new BooleanArgument("subEntries", |
| | | OPTION_SHORT_SUBENTRIES, OPTION_LONG_SUBENTRIES, |
| | | INFO_DESCRIPTION_SUBENTRIES.get()); |
| | | useSSL.setPropertyName(OPTION_LONG_SUBENTRIES); |
| | | argParser.addArgument(subEntriesArgument); |
| | | |
| | | effectiveRightsUser = |
| | | new StringArgument("effectiveRightsUser", |
| | | OPTION_SHORT_EFFECTIVERIGHTSUSER, |
| | |
| | | } |
| | | } |
| | | |
| | | if (subEntriesArgument.isPresent()) |
| | | { |
| | | Control subentriesControl = |
| | | new SubentriesControl(true, true); |
| | | searchOptions.getControls().add(subentriesControl); |
| | | } |
| | | |
| | | // Set the connection options. |
| | | connectionOptions.setSASLExternal(saslExternal.isPresent()); |
| | | if(saslOptions.isPresent()) |