Skip to content

Conversation

@vincentDcmps
Copy link
Contributor

Hi like request in #181 I will try to work on LDAP integration I create this pull request for following

@codecov
Copy link

codecov bot commented Oct 6, 2022

Codecov Report

❌ Patch coverage is 80.00000% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.96%. Comparing base (91af354) to head (d84ed31).

Files with missing lines Patch % Lines
supysonic/managers/ldap.py 70.83% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #237      +/-   ##
==========================================
- Coverage   86.25%   85.96%   -0.29%     
==========================================
  Files          47       48       +1     
  Lines        3891     3955      +64     
==========================================
+ Hits         3356     3400      +44     
- Misses        535      555      +20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vincentDcmps vincentDcmps changed the title init ldap implementation ldap implementation Mar 14, 2023
@vincentDcmps
Copy link
Contributor Author

I take inspiration from #250 to implement LDAP
still need:

  • test
  • documentation

@vincentDcmps vincentDcmps force-pushed the ldap branch 2 times, most recently from 7f36d89 to ff5bbc9 Compare March 16, 2023 21:01
@vincentDcmps vincentDcmps marked this pull request as ready for review March 16, 2023 21:23
@vincentDcmps
Copy link
Contributor Author

Hi I have some issue for write test do you have any idea on how to do a ldap mock?

@spl0k
Copy link
Owner

spl0k commented Mar 19, 2023

I wish there was some kind of embeddable directory for LDAP, kinda like SQLite...

Maybe you can use the unittest.mock library to patch the ldap3 library and use the side effects to return the data you need?

@vincentDcmps vincentDcmps force-pushed the ldap branch 2 times, most recently from 9cfdd80 to 9405f0f Compare March 19, 2023 21:15
@vincentDcmps
Copy link
Contributor Author

vincentDcmps commented Mar 20, 2023

hello, I have added some test thanks for your advice!!
@spl0k Could you review code and tell me if somebody is not correct.

PS: fail test seem not link with my modification

@vincentDcmps vincentDcmps force-pushed the ldap branch 2 times, most recently from ca23003 to 187c513 Compare March 21, 2023 19:52
@spl0k
Copy link
Owner

spl0k commented Apr 2, 2023

Hello.

Sorry I hadn't taken the time to respond yet. This is something I'd like to try with a real LDAP backend but I lack knowledge in the matter. I'll get back to you as soon as I manage to set up a LDAP server.

@vincentDcmps
Copy link
Contributor Author

Hi if you want try with fast LDAP instalation you could take a look on LLDAP side

@spl0k
Copy link
Owner

spl0k commented Nov 25, 2023

Hello. I actually managed to setup a basic OpenLDAP server some time ago.

I remember noticing uncaught errors if the server wasn't setup properly but I don't recall if it was with your PR or #250.
Then I wasn't satisfied with how the current auth and LDAP are somehow tangled together so I started working some kind of pluggable auth system... and kinda gave up along the way.

@vithyze
Copy link
Contributor

vithyze commented Jan 28, 2025

Hi @spl0k @vincentDcmps everything seems to be working fine, I made some little improvements in this PR Looking forward for this to be merged :)

@vithyze
Copy link
Contributor

vithyze commented Jan 28, 2025

Also btw I was tired of messing with OpenLDAP just for adding some users and doing authentication so I found this project which might be of interest

@vincentDcmps
Copy link
Contributor Author

Hi vithyze thanks for your fix, but final decision to include or not these modification need to be made by @spl0k who is the creator/main maintaner of these project.

@vincentDcmps vincentDcmps force-pushed the ldap branch 2 times, most recently from fca0245 to f6334d5 Compare January 30, 2025 22:06
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.

3 participants