Hi Nicolas On Mon, May 18, 2015 at 12:59 AM, Nicolas Peltier <[email protected]> wrote: > >> On 15 May 2015, at 18:53, Tobias Bocanegra <[email protected]> wrote: >> >> Hi, >> >> On Fri, May 15, 2015 at 6:59 AM, Nicolas Peltier <[email protected]> wrote: >>> Hi, >>> >>> using LdapIdentityProvider.listUsers i get results limited to 1000 results, >>> i guess this is a server limitation as the total number is > 10k. >> that might be a problem for the JMX beans functionality. can you >> create a bug? I think we need to either do paging in the provider or >> expose it via the API. > https://issues.apache.org/jira/browse/OAK-2874
Thanks. I thought of that and currently the listUsers() just returns an Iterator<ExternalUser>. we could either: a) extend the API with something like listUsers(offset, len) b) or return a javax.jcr.RangeIterator and note that in the javadoc. what do others think? I favour the RangeIterator - because that is was is was designed for. Regads, Toby > >> >>> Also default timeout is 60s, and i guess doing multiple paged requests >>> would be better. Is this something i should handle at project level or >>> would that be a possible enhancement? >> >> this should be configured by the search timeout: >> http://jackrabbit.apache.org/oak/docs/apidocs/org/apache/jackrabbit/oak/security/authentication/ldap/impl/LdapProviderConfig.html#getSearchTimeout() >> >> regards, toby >
