Details
-
Suggestion
-
Resolution: Fixed
-
None
-
None
Description
When results exceed a 999 results Microsoft Active Directory will throw the following exception:
org.springframework.ldap.SearchLimitExceededException: Too many objects found; nested exception is javax.naming.SizeLimitExceededException: [LDAP: error code 4 - Sizelimit Exceeded]; remaining name '
at com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector.testConnection(SpringLDAPConnector.java:669)
at com.atlassian.crowd.console.action.directory.CreateConnector.doUpdate(CreateConnector.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:364)
at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:216)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)
at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)
Information on how to accomplish this with standard JNDI/LDAP code:
http://forum.java.sun.com/thread.jspa?threadID=578347&tstart=0
Information on how to accomplish this with Spring's LDAP Template:
http://static.springframework.org/spring-ldap/docs/1.1.1/reference/#d0e993