]
David Lloyd resolved WFLY-4151.
-------------------------------
Resolution: Duplicate Issue
I believe this is a duplicate of the problem described in WFLY-4149.
Spring Security with Active Directory Provider throwing Wrapped
NamingException
-------------------------------------------------------------------------------
Key: WFLY-4151
URL:
https://issues.jboss.org/browse/WFLY-4151
Project: WildFly
Issue Type: Bug
Components: Naming
Affects Versions: 8.2.0.Final
Environment: Multiple
Reporter: Bob Paulin
Assignee: David Lloyd
There is a bug logged against Spring Security for this issue as well
https://jira.spring.io/browse/SEC-2754
Providing the ActiveDirectoryLdapAuthenticationProvider with incorrect credentials causes
internal server error when running on JBoss.
This is because ActiveDirectoryLdapAuthenticationProvider only considers top-level
LdapExceptions, whereas JBoss seems to wrap exceptions thrown by InitialLdapContext into a
top-level NamingException.
The issue does provide a suggested patch to spring security however I don't
understand why Wildfly is wrapping the LdapExceptions when it did not appear to do this as
late as JBoss EAP 6.2.0.GA