[AMQ-6833] Cleanly close DirContext in LDAPLoginModule when the authentication is complete

This commit is contained in:
jbonofre 2020-02-26 18:24:53 +01:00
parent d2592e22e5
commit a1e87c6096
1 changed files with 4 additions and 0 deletions

View File

@ -332,6 +332,10 @@ public class LDAPLoginModule implements LoginModule {
throw ex;
}
if (context != null) {
close(context);
}
return true;
}