diff --git a/src/docbkx/user-authentication.xml b/src/docbkx/user-authentication.xml index c8ad5759..cddc8375 100644 --- a/src/docbkx/user-authentication.xml +++ b/src/docbkx/user-authentication.xml @@ -233,7 +233,7 @@ ldapTemplate.authenticate("", "(uid=john.doe)", "secret", contextCallback));import org.springframework.ldap.core.support.CollectingAuthenticationErrorCallback; ... CollectingAuthenticationErrorCallback errorCallback = new CollectingAuthenticationErrorCallback(); -boolean result = tested.authenticate("", filter.toString(), "invalidpassword", errorCallback); +boolean result = ldapTemplate.authenticate("", filter.toString(), "invalidpassword", errorCallback); if (!result) { Exception error = errorCallback.getError(); // error is likely of type org.springframework.ldap.AuthenticationException