Skip to content

Add SSL peer verification to start_tls function#87

Closed
barn wants to merge 2 commits into
ruby-ldap:masterfrom
barn:master
Closed

Add SSL peer verification to start_tls function#87
barn wants to merge 2 commits into
ruby-ldap:masterfrom
barn:master

Conversation

@barn

@barn barn commented May 6, 2014

Copy link
Copy Markdown

No description provided.

barn added 2 commits May 6, 2014 11:36
Rather than just blindly OpenSSL::SSL::VERIFY_NONE-ing, verify the peer if
we're given a PEM formatted cafile.
Explain using the start_tls method and the additions for SSL peer
verification.
@RoUS

RoUS commented May 21, 2014

Copy link
Copy Markdown

+1 on this functionality (which I have not tested)!

@barn

barn commented May 21, 2014

Copy link
Copy Markdown
Author

We're using it in production and it seems to working out okay so far, but please test away.

@tarcieri

tarcieri commented Sep 4, 2014

Copy link
Copy Markdown

It'd be nice if this supported using non-STARTTLS operation (i.e. talking to LDAPS directly on e.g. port 636)

@jch

jch commented Oct 31, 2014

Copy link
Copy Markdown
Member

@barn there are active maintainers on this project again. Would you be interested in rebasing your changes against the latest master?

@tarcieri

Copy link
Copy Markdown

Note that we're using this patch successfully in production. I've even added integration tests using ruby-ldapserver. However I also modified the patch to work with :simple_tls in addition to :start_tls

@sonOfRa sonOfRa mentioned this pull request Nov 11, 2014
@barn

barn commented Nov 12, 2014

Copy link
Copy Markdown
Author

@jch Well I threw up a version that I think works at https://github.com/barn/ruby-net-ldap/tree/rebased-pull-87 and the tests pass, but it's not the finest code penned.

@tarcieri

Copy link
Copy Markdown

@barn I'm liking #161

@jch

jch commented Nov 12, 2014

Copy link
Copy Markdown
Member

@barn thanks for taking the time to rebase, but #161 is further along and similar in concept. If you have time, I'd love an additional pair of 👀 to go over that PR.

@jch jch closed this Nov 12, 2014
@barn

barn commented Nov 12, 2014

Copy link
Copy Markdown
Author

@jch Agree, that does look preferable.

I'll see if I can get round to testing it on something live, but the design looks much better.

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.

4 participants