Added property to LdapAuthenticationProvider to allow the credentials to be set either using the submitted password (the default) or the credentials from the loaded UserDetails object (which may be null if the attribute isn't readable).
@ -130,6 +130,7 @@ public class LdapAuthenticationProvider implements AuthenticationProvider {
@@ -130,6 +130,7 @@ public class LdapAuthenticationProvider implements AuthenticationProvider {
@ -186,6 +187,18 @@ public class LdapAuthenticationProvider implements AuthenticationProvider {
@@ -186,6 +187,18 @@ public class LdapAuthenticationProvider implements AuthenticationProvider {
@ -225,8 +238,9 @@ public class LdapAuthenticationProvider implements AuthenticationProvider {
@@ -225,8 +238,9 @@ public class LdapAuthenticationProvider implements AuthenticationProvider {
@ -98,7 +98,9 @@ public class LdapAuthenticationProviderTests extends TestCase {
@@ -98,7 +98,9 @@ public class LdapAuthenticationProviderTests extends TestCase {
@ -111,6 +113,17 @@ public class LdapAuthenticationProviderTests extends TestCase {
@@ -111,6 +113,17 @@ public class LdapAuthenticationProviderTests extends TestCase {
@ -148,26 +161,6 @@ public class LdapAuthenticationProviderTests extends TestCase {
@@ -148,26 +161,6 @@ public class LdapAuthenticationProviderTests extends TestCase {
}
}
// This test kills apacheDS in embedded mode because the search returns an invalid DN
// public void testIntegration() throws Exception {
// BindAuthenticator authenticator = new BindAuthenticator(getInitialCtxFactory());
// //PasswordComparisonAuthenticator authenticator = new PasswordComparisonAuthenticator();