JasperServer Reports No AuthenticationProvider found

Hello,


I want to setup SSO(OpenAM)  with JasperServer + LDAP.  I`ve read: http://community.jaspersoft.com/wiki/configuring-ldap-using-http-headers..., so I added new beans into /WEB-INF/applicationContext-externalAuth-LDAP.xml.

After restarting Tomcat 7, modifing http headers to: uname=userms1, upass=test, opening http://localhost:8085/jasperserver/ apache logs an exception and I can login into system using ldap credentials: userms1:test1 via JRS login page

Logged exception:

2015-02-13 10:36:25,511 DEBUG RequestHeaderPreAuthenticatedProcessingFilter,http-bio-8085-exec-2:90 - preAuthenticatedPrincipal = userms1, trying to authenticate
2015-02-13 10:36:25,511 DEBUG RequestHeaderPreAuthenticatedProcessingFilter,http-bio-8085-exec-2:90 - preAuthenticatedPrincipal = userms1, trying to authenticate
2015-02-13 10:36:25,515 DEBUG RequestHeaderPreAuthenticatedProcessingFilter,http-bio-8085-exec-2:130 - Cleared security context due to exception
org.springframework.security.providers.ProviderNotFoundException: No AuthenticationProvider found for org.springframework.security.providers.preauth.PreAuthenticatedAuthenticationToken
    at org.springframework.security.providers.ProviderManager.doAuthentication(ProviderManager.java:214)
    at org.springframework.security.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:46)
    at org.springframework.security.ui.preauth.AbstractPreAuthenticatedProcessingFilter.doAuthenticate(AbstractPreAuthenticatedProcessingFilter.java:96)
    at org.springframework.security.ui.preauth.AbstractPreAuthenticatedProcessingFilter.doFilterHttp(AbstractPreAuthenticatedProcessingFilter.java:67)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:411)
    at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
    at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:411)
    at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:188)


I want to bypass JRS login page & logon user directly but JRS must automatically map ROLES from LDAP for user defined in uname http header.



What am i missing ? What I misunderstood ?



I would be grateful for your help.



David

dawid.mocek's picture
Joined: Feb 11 2015 - 2:04am
Last seen: 6 years 3 months ago

0 Answers:

No answers yet
Feedback