Skip to content

AMQ-6148 re-using LDAP context for authentication#673

Closed
Dm-Chebotarskyi wants to merge 1 commit intoapache:mainfrom
Dm-Chebotarskyi:AMQ-6148_reusing_ldap_context
Closed

AMQ-6148 re-using LDAP context for authentication#673
Dm-Chebotarskyi wants to merge 1 commit intoapache:mainfrom
Dm-Chebotarskyi:AMQ-6148_reusing_ldap_context

Conversation

@Dm-Chebotarskyi
Copy link
Copy Markdown
Contributor

@Dm-Chebotarskyi Dm-Chebotarskyi commented Jun 24, 2021

Description

  • Re-using LDAP context for authentication.
  • Refactoring some code in LDAPLoginModule.java

Testing

Manual test authentication using LDAP TBD

Issue

https://issues.apache.org/jira/browse/AMQ-6148

Copy link
Copy Markdown

@epytka epytka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice :)

throw new NamingException("Empty username is not allowed");
}
protected void openContext() throws NamingException {
if (context == null) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to be consistent with deleteContext you could change to:

if (context != null) {
  return;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants