Code example for SearchControls

Methods: setSearchScope

0
    LDAP_CONFIG_PREFIX + ".directory.search.timeout";
  public static final int DIRECTORY_SEARCH_TIMEOUT_DEFAULT = 10000; // 10s
 
  private static final Log LOG = LogFactory.getLog(LdapGroupsMapping.class);
 
  private static final SearchControls SEARCH_CONTROLS = new SearchControls();
  static { 
    SEARCH_CONTROLS.setSearchScope(SearchControls.SUBTREE_SCOPE);
  } 
 
  private DirContext ctx;
  private Configuration conf; 
   
  private String ldapUrl;
  private boolean useSsl;
  private String keystore;
  private String keystorePass;
  private String bindUser;
  private String bindPassword;
  private String baseDN;