mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

abobrov
20.57.2009 2d9c97d306084b1e3d4daf140508a09b26ebb1c8
opendj-sdk/opends/src/server/org/opends/server/tools/LDAPSearch.java
@@ -712,6 +712,7 @@
    StringArgument    effectiveRightsAttrs     = null;
    StringArgument    propertiesFileArgument   = null;
    BooleanArgument   noPropertiesFileArgument = null;
    BooleanArgument   subEntriesArgument       = null;
    // Create the command-line argument parser for use with this program.
@@ -984,6 +985,12 @@
      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,
@@ -1599,6 +1606,13 @@
      }
    }
    if (subEntriesArgument.isPresent())
    {
      Control subentriesControl =
          new SubentriesControl(true, true);
      searchOptions.getControls().add(subentriesControl);
    }
    // Set the connection options.
    connectionOptions.setSASLExternal(saslExternal.isPresent());
    if(saslOptions.isPresent())