Skip to content

Extract LdapClient to plugin-toolkit#11909

Merged
Praveen2112 merged 2 commits intotrinodb:masterfrom
Praveen2112:praveen/002/ldap_cleanup
Apr 28, 2022
Merged

Extract LdapClient to plugin-toolkit#11909
Praveen2112 merged 2 commits intotrinodb:masterfrom
Praveen2112:praveen/002/ldap_cleanup

Conversation

@Praveen2112
Copy link
Copy Markdown
Member

@Praveen2112 Praveen2112 commented Apr 12, 2022

Description

This extraction allows us to reuse the LdapClient across multiple modules.

Is this change a fix, improvement, new feature, refactoring, or other?

Refactoring around LdapClient

Is this a change to the core query engine, a connector, client library, or the SPI interfaces? (be specific)

Password authenticators

How would you describe this change to a non-technical end user or system administrator?

Extract LdapClient to plugin toolkit

Related issues, pull requests, and links

Documentation

(x) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.

Release notes

(x) No release notes entries required.
( ) Release notes entries required with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Apr 12, 2022
@Praveen2112 Praveen2112 force-pushed the praveen/002/ldap_cleanup branch 3 times, most recently from 64443a2 to 7af157d Compare April 12, 2022 09:20
@Praveen2112 Praveen2112 marked this pull request as ready for review April 12, 2022 09:23
@Praveen2112 Praveen2112 force-pushed the praveen/002/ldap_cleanup branch from 7af157d to 7e5543e Compare April 12, 2022 12:33
Copy link
Copy Markdown
Member

@aczajkowski aczajkowski left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

copyOf?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  • null handling

@Praveen2112 Praveen2112 force-pushed the praveen/002/ldap_cleanup branch from 7e5543e to 73e64db Compare April 14, 2022 07:57
Copy link
Copy Markdown
Member

@s2lomon s2lomon left a comment

Choose a reason for hiding this comment

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

lgtm %comments

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

  • null handling

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would prefer all this kind ldap queries be hidden behind additional additional service like class named Ldap or LdapService, LdapGateway/Repository or something, so that the context of what's going on is clear there and the logic connected with ldap query is not entangled with the interpretation of it for Authentication purposes.

@Praveen2112 Praveen2112 force-pushed the praveen/002/ldap_cleanup branch from 73e64db to 18fb12f Compare April 27, 2022 14:28
@Praveen2112
Copy link
Copy Markdown
Member Author

@s2lomon AC

Copy link
Copy Markdown
Member

@s2lomon s2lomon left a comment

Choose a reason for hiding this comment

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

Good job, I like how it's done.

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

Development

Successfully merging this pull request may close these issues.

5 participants