go to  ForumEasy.com   
LdapPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  What happens if pageSize > sizeLimit ?
 
Subject: What happens if pageSize > sizeLimit ?
Author: SteveHB
In response to: What happens if pageSize > MaxPageSize ?
Posted on: 09/11/2007 09:43:21 PM

For a given search, there is always a bound size limit, either 0 or something. For the value of 0 which means no limit, it's OK for any value of pageSize. For sizeLimit !=0, if pageSize <= sizeLimit, it's still OK, but if pageSize > sizeLimit, you would get something like this:

javax.naming.SizeLimitExceededException: [LDAP: error code 4 - Sizelimit Exceeded]; remaining name 'dc=mydomain,dc=com'


 

> On 09/11/2007 09:31:06 PM SteveHB wrote:


Take AD for example, its MaxPageSize = 1000 by default, which means each search cannot return results more than 1000. The problem is that you might have no idea of the value of MaxPageSize for a given LDAP server and you might accidentally set pageSize > MaxPageSize, e.g. 1500 > 1000.

AD will automatically trim the 1500 to 1000 and return only 1000 results each page. That's OK and doesn't hurts anyone.







References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.