Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

adds ldap auth plugin #55

Merged
merged 5 commits into from
Jul 17, 2015
Merged

adds ldap auth plugin #55

merged 5 commits into from
Jul 17, 2015

Conversation

a-tal
Copy link
Contributor

@a-tal a-tal commented Jul 14, 2015

No description provided.

@stevearc
Copy link
Owner

Nice! I'll get this reviewed ASAP

@a-tal
Copy link
Contributor Author

a-tal commented Jul 14, 2015

cool, thanks. I have it working pretty well right now in a little test vm.
hit me up on chat if you want.

On 14 July 2015 at 10:03, Steven Arcangeli notifications@github.com wrote:

Nice! I'll get this reviewed ASAP


Reply to this email directly or view it on GitHub
#55 (comment).

@@ -22,6 +23,8 @@ def includeme(config):
dotted_name = RemoteAccessBackend
elif dotted_name == 'sql':
dotted_name = SQLAccessBackend
elif dotted_name == 'ldap' and LDAP_ENABLED:
dotted_name = LDAPAccessBackend
Copy link
Owner

Choose a reason for hiding this comment

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

If ldap isn't installed this will produce an unclear message (something about being unable to import the path). I recommend looking at how the caching backend sets itself up (since it isn't guaranteed to have flywheel installed at runtime). It does a lazy import and prints out a clear error message if it fails.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this should be clearer once python-ldap is in the requirements.txt

@stevearc
Copy link
Owner

Good stuff! Left a few comments.

@a-tal
Copy link
Contributor Author

a-tal commented Jul 16, 2015

🔔 hey, any outstanding issues left on this?

@@ -28,6 +28,7 @@
'six',
'transaction',
'zope.sqlalchemy',
'python-ldap',
Copy link
Owner

Choose a reason for hiding this comment

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

I actually preferred what you were doing earlier with extras_require. It would be better to not require every installation to install python-ldap

@stevearc
Copy link
Owner

Two last small nits. Thanks for putting so much work into this!

Fixes #16

@stevearc
Copy link
Owner

👍

stevearc added a commit that referenced this pull request Jul 17, 2015
@stevearc stevearc merged commit 2a5abdd into stevearc:master Jul 17, 2015
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.

2 participants