Skip to content
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

Add LDAP auth module #6226

Merged
merged 2 commits into from
Nov 25, 2019
Merged

Conversation

brodo
Copy link
Contributor

@brodo brodo commented Nov 20, 2019

This PR adds a auth module for LDAP servers. There are some people who have rolled their own implementations of this (you can find them by searching for 'ldap' in the issues) so there is definitely a need for it. The PR adds a dependency on the ldapjs package.

I tried to make it as generic as possible, so it should work with all kinds of LDAP servers and configurations. This means that it takes a lot of config options, but I'll open a PR in the docs repo shortly where I describe how to set it up.

@codecov
Copy link

codecov bot commented Nov 20, 2019

Codecov Report

Merging #6226 into master will decrease coverage by 0.06%.
The diff coverage is 92.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6226      +/-   ##
==========================================
- Coverage   93.85%   93.78%   -0.07%     
==========================================
  Files         167      168       +1     
  Lines       11302    11344      +42     
==========================================
+ Hits        10607    10639      +32     
- Misses        695      705      +10
Impacted Files Coverage Δ
src/Adapters/Auth/index.js 93.54% <100%> (+0.1%) ⬆️
src/Adapters/Auth/ldap.js 92.68% <92.68%> (ø)
src/RestWrite.js 93.42% <0%> (-0.5%) ⬇️
...dapters/Storage/Postgres/PostgresStorageAdapter.js 97.01% <0%> (-0.25%) ⬇️
src/Controllers/SchemaController.js 96.42% <0%> (-0.22%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 04639a6...b2ed290. Read the comment docs.

@brodo
Copy link
Contributor Author

brodo commented Nov 20, 2019

I don't know why Codecov thinks coverage in files which I did not touch has decreased. 😐

Copy link
Member

@dplewis dplewis left a comment

Choose a reason for hiding this comment

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

A few comments from me.

For codecov we are more focus on diff, the red parts that aren't tested.

package.json Outdated Show resolved Hide resolved
src/Adapters/Auth/ldap.js Outdated Show resolved Hide resolved
src/Adapters/Auth/ldap.js Show resolved Hide resolved
Copy link
Member

@dplewis dplewis left a comment

Choose a reason for hiding this comment

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

Can you just double check if you are destroying / unbinding the client in the correct places? If everything is good we can get this merged.

src/Adapters/Auth/ldap.js Show resolved Hide resolved
@brodo
Copy link
Contributor Author

brodo commented Nov 25, 2019

Can you just double check if you are destroying / unbinding the client in the correct places? If everything is good we can get this merged.

There was one more place where I forgot the destroy/unbind. Should be all fixed now.

@dplewis dplewis merged commit 4435154 into parse-community:master Nov 25, 2019
UnderratedDev pushed a commit to UnderratedDev/parse-server that referenced this pull request Mar 21, 2020
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