Skip to content

Commit c0def85

Browse files
Amir Wienerrwinch
Amir Wiener
authored andcommitted
return the processed context (as it can be a proxy)
1 parent 1da8319 commit c0def85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/org/springframework/ldap/core/support/AbstractContextSource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ private DirContext doGetContext(String principal, String credentials, boolean ex
139139
DirContext ctx = createContext(env);
140140

141141
try {
142-
authenticationStrategy.processContextAfterCreation(ctx, principal, credentials);
143-
return ctx;
142+
DirContext processedDirContext = authenticationStrategy.processContextAfterCreation(ctx, principal, credentials);
143+
return processedDirContext;
144144
}
145145
catch (NamingException e) {
146146
closeContext(ctx);

0 commit comments

Comments
 (0)