Fixed typo (LDAP-193).

This commit is contained in:
Ulrik Sandberg
2009-12-18 13:37:15 +00:00
parent b5bc5b17e2
commit 0af69ea48e

View File

@@ -233,7 +233,7 @@ ldapTemplate.authenticate("", "(uid=john.doe)", "secret", contextCallback));</pr
<programlisting>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