8000 feat(authn): integrate the LDAP authentication by lafirest · Pull Request #11386 · emqx/emqx · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@lafirest
Copy link
Member
@lafirest lafirest commented Aug 3, 2023

Fixes EMQX-10697

Summary

🤖 Generated by Copilot at ae3f0f6

This pull request adds LDAP authentication support to the enterprise edition of emqx. It refactors the emqx_ldap module to improve the configuration validation and parsing, and adds a new emqx_ldap_authn module that implements the emqx_authentication behaviour for LDAP. It also updates the test suites and the internationalization files for the LDAP modules, and removes some unused files and code.

PR Checklist

Please convert it to a draft if any of the following conditions are not met. Reviewers may skip over until all the items are checked:

  • Added tests for the changes
  • Added property-based tests for code which performs user input validation
  • Changed lines covered in coverage report
  • Change log has been added to changes/(ce|ee)/(feat|perf|fix)-<PR-id>.en.md files
  • For internal contributor: there is a jira ticket to track this change
  • Created PR to emqx-docs if documentation update is required, or link to a follow-up jira ticket
  • Schema changes are backward compatible

Checklist for CI (.github/workflows) changes

  • If changed package build workflow, pass this action (manual trigger)
  • Change log has been added to changes/ dir for user-facing artifacts update

@lafirest lafirest force-pushed the feat/ldap_authn branch 2 times, most recently from 0a03370 to f3df80e Compare August 3, 2023 08:38
@lafirest lafirest marked this pull request as ready for review August 3, 2023 11:11
@lafirest lafirest requested review from a team, JimMoen and savonarola as code owners August 3, 2023 11:11
savonarola < 8000 div aria-role="image" data-view-component="true" class="TimelineItem-badge">

-export([providers/0, resource_provider/0]).

-if(?EMQX_RELEASE_EDITION == ee).
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: do we need compile-time condition? Maybe emqx_release:edition() is enough?

without_password(Credential) ->
without_password(Credential, [password, <<"password">>]).

to_bool(<<"true">>) ->
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@lafirest lafirest merged commit 1b0b157 into emqx:master Aug 4, 2023
@lafirest lafirest deleted the feat/ldap_authn branch August 4, 2023 01:37
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.

4 participants

0