| | |
| | | { |
| | | SearchControls ctls = controller.getBasicSearchControls(); |
| | | ctls.setSearchScope(SearchControls.SUBTREE_SCOPE); |
| | | ctls.setReturningAttributes(new String[]{"dn"}); |
| | | ctls.setReturningAttributes(new String[]{"1.1"}); |
| | | ctls.setCountLimit(1); |
| | | NamingEnumeration<SearchResult> s = ctx.search(new LdapName(node.getDN()), |
| | | controller.getFilter(), |
| | |
| | | // It's enough to know if the entry has children or not. |
| | | SearchControls ctls = controller.getBasicSearchControls(); |
| | | ctls.setCountLimit(1); |
| | | String[] attrs = {"dn"}; |
| | | String[] attrs = {"1.1"}; |
| | | ctls.setReturningAttributes(attrs); |
| | | if (useCustomFilter()) |
| | | { |