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

Implement LDAP backend #1

Merged
merged 4 commits into from
Sep 17, 2015
Merged

Implement LDAP backend #1

merged 4 commits into from
Sep 17, 2015

Conversation

m4dcoder
Copy link
Contributor

No description provided.


self._users_ou = users_ou

if scope < 0 or scope > 2:
Copy link

Choose a reason for hiding this comment

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

any reason these aren't enum'd (BASE/ONE/SUB)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, i will change that.

@jfryman
Copy link

jfryman commented Sep 17, 2015

Nice and clean. 👍

m4dcoder added a commit that referenced this pull request Sep 17, 2015
@m4dcoder m4dcoder merged commit 7fb3456 into master Sep 17, 2015
@m4dcoder m4dcoder deleted the ldap_backend branch September 17, 2015 21:37
protocol = 'ldaps' if self._use_ssl else 'ldap'
endpoint = '%s://%s:%d' % (protocol, self._host, self._port)
connection = ldap.initialize(endpoint)
connection.set_option(ldap.OPT_DEBUG_LEVEL, 255)
Copy link
Member

Choose a reason for hiding this comment

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

Would be good if we can make this configurable for debugging purposes.

Maybe you could allow user to define debug argument and if this argument is specified, set this option to an appropriate value and also pass trace_level argument with the appropriate value to the initialize method.

@Kami
Copy link
Member

Kami commented Sep 21, 2015

Just FYI - I've enabled (private) Travis CI for this repo - https://magnum.travis-ci.com/StackStorm/st2-enterprise-auth-backend-ldap

@Kami
Copy link
Member

Kami commented Sep 21, 2015

I've added some comments, but overall +1 on what @jfryman has said - nice and clean 👍

Kami added a commit that referenced this pull request May 7, 2019
73fe88f Fix merge conflict.
72d3b7c Merge pull request #1 from StackStorm/update_lint_configs
2709c47 Update lint config with changes from StackStorm/st2#4657.
418d2eb Sync flake8 config with StackStorm/st2 master.
9b6b10b Update flake8 config so we ignore build/ and dist/ directories.
e43b03a Update pylint config.

git-subtree-dir: lint-configs
git-subtree-split: 73fe88f2da7403d69bc5ebd7c6d22d12860c3744
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