ruby-net-ldap icon indicating copy to clipboard operation
ruby-net-ldap copied to clipboard

EOF errors?

Open aarnwri opened this issue 1 year ago • 1 comments

I'm updating a Rails app, and finding that I can't update OpenSSL, without getting EOF errors:

SSL_connect returned=1 errno=0 peeraddr=<IP_ADDR>:636 state=error: unexpected eof while reading

I need TLSv1_2 to work, maybe that's part of the problem... If I'm using OpenSSL 1.0.2u, it works fine. If I try to update it to 1.1.1t or 3.0.5, I get these eof errors.

net-ldap is version 0.18.0. ruby version is 3.1.4. Usage is as follows:

    ldap = Net::LDAP.new(
      :host       => '<ldap_server>',
      :port       => 636,
      :base       => "<base>",
      :encryption => {
        :method      => :simple_tls,
        :tls_options => { ssl_version: :TLSv1_2 }
      }
    )

I saw, it looked like there may be similar issues else where... https://github.com/redis/redis-rb/issues/1106

Is this maybe an issue with this library? Any thoughts? Thanks!

aarnwri avatar May 19 '23 06:05 aarnwri

What version of OpenSSL are you running where you see this issue?

We may need to add something like this https://github.com/redis/redis-rb/pull/1107/files

HarlemSquirrel avatar Jun 29 '23 16:06 HarlemSquirrel