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

Non-blocking LDAP authenticator #38

Merged
merged 9 commits into from
Sep 2, 2022
Merged

Conversation

dmgav
Copy link
Contributor

@dmgav dmgav commented Sep 1, 2022

Implementation of non-blocking LDAP authenticator.

Summary of Changes for Release Notes

Fixed

Added

  • New parameters of LDAPAuthenticator: connect_timeout, receive_timeout.

Changed

  • LDAPAuthenticator is now not blocking the server event loop while waiting for the response from the server.
  • LDAPAuthenticator now works with the pool of LDAP servers. The parameter server_address accepts a string representing a single server or a list of strings representing multiple servers.

Removed

How Has This Been Tested?

danielballan added a commit to dmgav/tiled that referenced this pull request Sep 1, 2022
danielballan added a commit to bluesky/tiled that referenced this pull request Sep 1, 2022
* ENH: add LDAPAuthenticator

* STY: black

* Make ldap3 an optional dependency.

* Remove global imports.

* Refactor imports.

* Satisfy isort.

* Make LDAP authenticator non-blocking.

Ported from bluesky/bluesky-httpserver#38 by @dmgav

* Fix missing await.

Co-authored-by: Dan Allan <dallan@bnl.gov>
@dmgav dmgav merged commit 531d153 into bluesky:master Sep 2, 2022
@dmgav dmgav deleted the non-blocking-ldap branch September 2, 2022 02:28
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.

1 participant