return the processed context (as it can be a proxy)

This commit is contained in:
Amir Wiener
2017-08-16 13:47:05 +03:00
committed by Rob Winch
parent 1da83195e2
commit c0def8583f

View File

@@ -139,8 +139,8 @@ public abstract class AbstractContextSource implements BaseLdapPathContextSource
DirContext ctx = createContext(env);
try {
authenticationStrategy.processContextAfterCreation(ctx, principal, credentials);
return ctx;
DirContext processedDirContext = authenticationStrategy.processContextAfterCreation(ctx, principal, credentials);
return processedDirContext;
}
catch (NamingException e) {
closeContext(ctx);