Jump to content

JasperServer Reports No AuthenticationProvider found


dawid.mocek

Recommended Posts

Hello,


I want to setup SSO(OpenAM)  with JasperServer + LDAP.  I`ve read: http://community.jaspersoft.com/wiki/configuring-ldap-using-http-headers-jasperreports-server-51-sso-framework, 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 authenticate2015-02-13 10:36:25,511 DEBUG RequestHeaderPreAuthenticatedProcessingFilter,http-bio-8085-exec-2:90 - preAuthenticatedPrincipal = userms1, trying to authenticate2015-02-13 10:36:25,515 DEBUG RequestHeaderPreAuthenticatedProcessingFilter,http-bio-8085-exec-2:130 - Cleared security context due to exceptionorg.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)[/code]


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

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...