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

Fix connection timeout error, add example #9

Merged
merged 7 commits into from
May 1, 2014
Merged

Fix connection timeout error, add example #9

merged 7 commits into from
May 1, 2014

Conversation

EnzoMartin
Copy link
Contributor

This fixes an issue where the LDAP connection can timeout/get closed by the LDAP server due to idle time which will break the Strategy from working unless the application is restarted.

Adds the ability to configure the username/password field to use from the request, and adds support for replacing the placeholder string in the configured filter. (#7)

I've also added a Windows LDAP example. (#4)

Tested with a Windows AD server

Enzo Martin added 3 commits April 23, 2014 17:46
- Added configurable username/password fields
- Made LDAP connection get created on auth attempts otherwise the connection can be closed by the LDAP server and break the strategy unless the application is restarted
- Added username placeholder replace
- Add contributors
@EnzoMartin EnzoMartin mentioned this pull request Apr 23, 2014
@mintbridge
Copy link
Owner

Awesome, thanks! I'll test it over the weekend and get it merged.

@EnzoMartin
Copy link
Contributor Author

Sorry, realized just now that I had changed the base option to support being an array (used to dynamically add additional DN entries based off the user attempting to login with Windows LDAP) as well as a string, made 2 extra commits to handle both variable types properly.

Also prettied up the readme up a bit and documented the options object.

mintbridge added a commit that referenced this pull request May 1, 2014
Fix connection timeout error, add example Thanks @EnzoMartin78
@mintbridge mintbridge merged commit 9a51bff into mintbridge:master May 1, 2014
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.

2 participants