Code example for SearchControls

Methods: setSearchScope

  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 { 
  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;
Connect your IDE to all the code out there  Get Codota for Java