SizeLimitExceededException when integrated with LDAP
症状
atlassian-stash.log
に次のメッセージが表示される。
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
原因
The application is getting more results to LDAP queries than what its current configuration allows.
ソリューション
Adjust "Use Paged Results" according to this document:
Configuring delegated LDAP authentication
Last modified on Mar 30, 2016
Powered by Confluence and Scroll Viewport.