Merge pull request #476 from jbonofre/AMQ-6833

[AMQ-6833] Cleanly close DirContext in LDAPLoginModule when the authentication is complete
This commit is contained in:
Jean-Baptiste Onofré 2020-02-27 17:00:16 +01:00 committed by GitHub
commit 6e650841fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

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