Describe the bug Error creating bean with name 'filterInvocationInterceptorDeregistrationBean': Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.springframework.security.web.access.intercept.FilterSecurityInterceptor' to required type 'javax.servlet.Filter' for property 'filter'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'org.springframework.security.web.access.intercept.FilterSecurityInterceptor' to required type 'javax.servlet.Filter' for property 'filter': no matching editors or conversion strategy found
To Reproduce 1. Create a new grails project with embedded tomcat 2. Add grails spring security plugins to build.gradle 3. Declare authManager bean in resources.groovy:
@Bean AuthenticationManager authManager(BaseLdapPathContextSource contextSource) { LdapBindAuthenticationManagerFactory factory = new LdapBindAuthenticationManagerFactory(contextSource); factory.setUserDnPatterns("uid={0},DC=edapt,DC=local"); return factory.createAuthenticationManager(); }
- Import spring-security-core, spring-security-web and spring-security-config in build.gradle
- Attempt to run the app
Expected behavior The app should run and connect to Active Directory over LDAP
Sample
(https://github.com/HarrisLOGIC/stella)
Comment From: jzheaux
Thanks for the report, @guruscott-meyer. Unfortunately, the URL https://github.com/HarrisLOGIC/stella gives me a 404. Do you have an updated sample?
Comment From: spring-projects-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Comment From: spring-projects-issues
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.