SizeLimitExceededException when integrated with LDAP

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

The following appears in the atlassian-bitbucket.log:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2013-07-08 20:27:47,531 ERROR [scheduler_Worker-7] o.s.l.c.AbstractRequestControlDirContextProcessor No matching response control found for paged results - looking for 'class javax.naming.ldap.PagedResultsResponseControl 2013-07-08 20:27:47,552 ERROR [scheduler_Worker-7] c.a.c.d.DbCachingDirectoryPoller Error occurred while refreshing the cache for directory [ 32770 ]. com.atlassian.crowd.exception.OperationFailedException: org.springframework.ldap.SizeLimitExceededException: [LDAP: error code 4 - Sizelimit Exceeded]; nested exception is javax.naming.SizeLimitExceededException: [LDAP: error code 4 - Sizelimit Exceeded]; remaining name 'ou=People,xxxxxxxxx' at com.atlassian.crowd.directory.SpringLDAPConnector.pageSearchResults(SpringLDAPConnector.java:357) ~[crowd-ldap-2.5.3-m1.jar:na] at com.atlassian.crowd.directory.SpringLDAPConnector.searchEntitiesWithRequestControls(SpringLDAPConnector.java:390) ~[crowd-ldap-2.5.3-m1.jar:na] at com.atlassian.crowd.directory.SpringLDAPConnector.searchEntities(SpringLDAPConnector.java:375) ~[crowd-ldap-2.5.3-m1.jar:na] .... .... Caused by: org.springframework.ldap.SizeLimitExceededException: [LDAP: error code 4 - Sizelimit Exceeded]; nested exception is javax.naming.SizeLimitExceededException: [LDAP: error code 4 - Sizelimit Exceeded]; remaining name 'ou=People,xxxxxxxxx' at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:148) ~[spring-ldap-core-1.3.1.RELEASE.jar:1.3.1.RELEASE] .... .... ... 14 common frames omitted Caused by: javax.naming.SizeLimitExceededException: [LDAP: error code 4 - Sizelimit Exceeded] .... ... 20 common frames omitted

Cause

The application is getting more results to LDAP queries than what its current configuration allows.

Resolution

Adjust "Use Paged Results" according to this document:

Configuring delegated LDAP authentication

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.