我必须从我的ldap学校获得200名用户,但问题是我无法获得超过200名用户我得到例外:
String filter = "uid=G26274";
String[] arrayFilter = filter.split("=");
Filter filters = Filter.createNOTFilter(Filter.createEqualityFilter(arrayFilter[0], arrayFilter[1]));
SearchRequest searchRequest = new SearchRequest(query, SearchScope.SUB, filters, getParameter);
searchRequest.setSizeLimit(200);
searchResult = this.conn.search(searchRequest);
我正在使用setSizeLimit函数,我得到了相同的结果。
谢谢