Issue Description:When logging into JasperReportsServer with external authentication enabled, the following error appears in the browser: | [toc] |
HTTP Status 500 – Internal Server Error Type Exception Report Message Unprocessed Continuation Reference(s); nested exception is javax.naming.PartialResultException: Unprocessed Continuation Reference(s); remaining name '' Description The server encountered an unexpected condition that prevented it from fulfilling the request. Exception org.springframework.ldap.PartialResultException: Unprocessed Continuation Reference(s); nested exception is javax.naming.PartialResultException: Unprocessed Continuation Reference(s); remaining name ''
Resolution:
PartialResultExceptions are generally found in JasperReportsServer deployments with Active Directory as the external authentication mechanism, although it can apply generally to any LDAP as well. This is because a user search can possibly return multiple entries. The Spring Security framework has a couple of properties you can set to ignore partial result exceptions. You would first need to deploy the attached jar to the below folder:
jasperserver-pro/WEB-INF/lib
and edit the LDAP configuration and change the ldapAuthenticationProvider bean definition as follows:
<bean id="ldapAuthenticationProvider" class="com.jaspersoft.jasperserver.api.security.externalAuth.wrappers.spring.ldap.JSLdapAuthenticationProvider"> <constructor-arg> <bean class="com.jaspersoft.jasperserver.api.security.externalAuth.ldap.JSADBindAuthenticator"> <constructor-arg><ref local="ldapContextSource"/></constructor-arg> <property name="userSearch" ref="userSearch"/> </bean> </constructor-arg> <constructor-arg> <bean class="com.jaspersoft.jasperserver.api.security.externalAuth.ldap.JSLdapAuthoritiesPopulator"> <constructor-arg index="0"><ref local="ldapContextSource"/></constructor-arg> <constructor-arg index="1"><value></value></constructor-arg> <property name="groupRoleAttribute" value="CN"/> <property name="groupSearchFilter" value="(&(member={0})(objectGroup=class))"/> <property name="searchSubtree" value="true"/> </bean> </constructor-arg> </bean>
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now