You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by Nicolas Peltier <np...@adobe.com> on 2015/05/15 15:59:21 UTC

[ldap] paged search in LdapIdentityProvider.listUsers

Hi,

using LdapIdentityProvider.listUsers i get results limited to 1000 results, i guess this is a server limitation as the total number is > 10k. 
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?

Nicolas

Re: [ldap] paged search in LdapIdentityProvider.listUsers

Posted by Tobias Bocanegra <tr...@adobe.com>.
Hi Nicolas

On Mon, May 18, 2015 at 12:59 AM, Nicolas Peltier <np...@adobe.com> wrote:
>
>> On 15 May 2015, at 18:53, Tobias Bocanegra <tr...@apache.org> wrote:
>>
>> Hi,
>>
>> On Fri, May 15, 2015 at 6:59 AM, Nicolas Peltier <np...@adobe.com> 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
>

Re: [ldap] paged search in LdapIdentityProvider.listUsers

Posted by Nicolas Peltier <np...@adobe.com>.
> On 15 May 2015, at 18:53, Tobias Bocanegra <tr...@apache.org> wrote:
> 
> Hi,
> 
> On Fri, May 15, 2015 at 6:59 AM, Nicolas Peltier <np...@adobe.com> 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

> 
>> 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


Re: [ldap] paged search in LdapIdentityProvider.listUsers

Posted by Tobias Bocanegra <tr...@apache.org>.
Hi,

On Fri, May 15, 2015 at 6:59 AM, Nicolas Peltier <np...@adobe.com> 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.

> 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