May 11th, 2011, 09:20 PM
Multiple Authentication for Web and Webservices with LDAP
I been working on spring security since two days. I wanted to authenticate my web access /**/admin/*.jsp* to LdapServer1 and /**/services/**ServiceImpl (all webservices) into another LdapServer2.
<security:intercept-url pattern="/**/admin/index.jsp*" filter="myfilter1"/>
<security:intercept-url pattern="/**/services/**" filter="myfilter2"/>
Actually i'm not getting any proper source, where pattern 1 goes to first authentication provider, and patten 2 goes to authentication provider 2.
Following url has some info, but its not working for me.
Here my security definition:
<bean id="filterChainProxy" class="org.springframework.security.web.FilterChai nProxy">
<security:filter-chain pattern="/images/*" filters="none"/>
<security:filter-chain pattern="/**/admin/index.jsp*" filters="basicAuthenticationFilter"/>
<property name="authenticationManager" ref="authenticationManager"/>
<property name="authenticationEntryPoint" ref="authenticationEntryPoint"/>
<property name="realmName" value="test"/>
<security:user name="logu" password="test" authorities="ROLE_USER" />
I was getting nullpointer exception in FilterchainProxy. is there anyway i can define multiple http entries for calling Authentication provider?
Thanks in advance.
Last edited by logu96; May 11th, 2011 at 09:36 PM.
May 12th, 2011, 05:09 AM
Yes, this is possible in Spring Security 3.1, which now supports multiple <http> configuration elements. Is upgrading an option for you?
Peter Mularien | Blog
Author, Spring Security 3 (Book) - Packt Publishing, Available in print and eBook form
SCJP 5, Oracle DBA
Any postings are my own opinion, and should not be attributed to my employer or clients.
May 12th, 2011, 11:08 AM
Im planning to use 3.0.5, i think it does not support multiple <http> entries.
Tags for this Thread