-
Notifications
You must be signed in to change notification settings - Fork 1.5k
AMQ-6148 Reusing LDAP context to avoid creating new connections #699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Please rebase, and take a look at the comments about moving some clean-up tasks to finally {} blocks instead to prevent leaks or deadlock. |
Hey Matt, thanks for the quick review. |
activemq-jaas/src/main/java/org/apache/activemq/jaas/LDAPLoginModule.java
Outdated
Show resolved
Hide resolved
activemq-jaas/src/main/java/org/apache/activemq/jaas/LDAPLoginModule.java
Outdated
Show resolved
Hide resolved
activemq-jaas/src/main/java/org/apache/activemq/jaas/LDAPLoginModule.java
Show resolved
Hide resolved
activemq-jaas/src/main/java/org/apache/activemq/jaas/LDAPLoginModule.java
Show resolved
Hide resolved
jbonofre
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks !
activemq-jaas/src/main/java/org/apache/activemq/jaas/LDAPLoginModule.java
Show resolved
Hide resolved
activemq-jaas/src/main/java/org/apache/activemq/jaas/LDAPLoginModule.java
Show resolved
Hide resolved
|
@Dm-Chebotarskyi do you mind to squash the 9 commits in one and rebase ? If you prefer, I can do it myself and manually merge. Thoughts ? |
|
Thanks for the review @jbonofre . |
|
@Dm-Chebotarskyi awesome ! Thank you so much ! Let me know if I can help on anything. |
Description
Re-using LDAP context for authentication. The context is created only once and re-used each time ActiveMQ server established connection with ActiveMQ clients.
Refactoring some code in LDAPLoginModule.java
This PR is based on fix introduced to Artemis: apache/artemis@f3a8619#diff-706fd9b54d2aed5a0ea5d28fa7c70f7ee733672f7e91d847137517e3b147d716
Testing
Manual test authentication using LDAP
Issue
https://issues.apache.org/jira/browse/AMQ-6148