You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jb...@apache.org on 2020/02/27 16:01:06 UTC
[activemq] branch activemq-5.15.x updated: [AMQ-6833] Cleanly close
DirContext in LDAPLoginModule when the authentication is complete
This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch activemq-5.15.x
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/activemq-5.15.x by this push:
new e0f7084 [AMQ-6833] Cleanly close DirContext in LDAPLoginModule when the authentication is complete
e0f7084 is described below
commit e0f708439653dbedcd2e8ed81257a7392718add6
Author: jbonofre <jb...@apache.org>
AuthorDate: Wed Feb 26 18:24:53 2020 +0100
[AMQ-6833] Cleanly close DirContext in LDAPLoginModule when the authentication is complete
(cherry picked from commit a1e87c60963d7ac736aad01786dc6026fe2c3ac3)
---
.../src/main/java/org/apache/activemq/jaas/LDAPLoginModule.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/activemq-jaas/src/main/java/org/apache/activemq/jaas/LDAPLoginModule.java b/activemq-jaas/src/main/java/org/apache/activemq/jaas/LDAPLoginModule.java
index dced7ce..aad8f50 100644
--- a/activemq-jaas/src/main/java/org/apache/activemq/jaas/LDAPLoginModule.java
+++ b/activemq-jaas/src/main/java/org/apache/activemq/jaas/LDAPLoginModule.java
@@ -332,6 +332,10 @@ public class LDAPLoginModule implements LoginModule {
throw ex;
}
+ if (context != null) {
+ close(context);
+ }
+
return true;
}