Hitachi Vantara Pentaho Community Wiki
Child pages
  • Search Scope Include
Skip to end of metadata
Go to start of metadata

Just as DefaultLdapAuthoritiesPopulator has a configurable search scope via its searchSubtree property, LdapSearchParamsFactoryImpl provides a way to set a search scope by passing a SearchControls instance into the constructor. The XML below demonstrates this. If no SearchControls is supplied via the constructor, the default search scope is ONELEVEL_SCOPE.

<bean class="">
  <constructor-arg index="0" value="ou=users" />
  <constructor-arg index="1" value="objectClass=Person" />
  <constructor-arg index="2">
    <bean class="">
      <!-- 2 comes from -->
      <property name="searchScope" value="2" />
  • No labels