Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Restructure ldap authentication #1153

Merged
merged 1 commit into from
Sep 30, 2016
Merged

Conversation

erikjohnston
Copy link
Member

  • properly parse return values of ldap bind() calls
  • externalize authentication methods
  • change control flow to be more error-resilient
  • unbind ldap connections in many places
  • improve log messages and loglevels

Returns True, LDAP3Connection
if the bind was successful
Returns False, None
if an error occured
Copy link
Member Author

Choose a reason for hiding this comment

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

Any reason not to just return LDAP3Connection or None? Or even throw an exception to make sure the case is handled?

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, i suppose that doesn't fit in with the way the rest of the stuff works.

Copy link
Contributor

Choose a reason for hiding this comment

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

Glad to work on this in another iteration.

- properly parse return values of ldap bind() calls
- externalize authentication methods
- change control flow to be more error-resilient
- unbind ldap connections in many places
- improve log messages and loglevels
@erikjohnston erikjohnston merged commit f7bcdbe into develop Sep 30, 2016
@lonyai
Copy link

lonyai commented Oct 10, 2016

This patch broke my LDAP authentication.
I install the synapse 0.18.0 and setup the LDAP some days.
Today, it don't work.

Please help me: what's the news in this ldap auth?

@richvdh richvdh deleted the erikj/ldap_restructure branch December 1, 2016 14:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants