Skip to content

[TIMEOUT][ERROR] net-ldap-0.1.1/lib/net/ldap.rb:1139:in `getbyte' #8

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

Closed
halostatue opened this issue Jul 12, 2011 · 3 comments
Closed
Labels

Comments

@halostatue
Copy link

Originally submitted as RubyForge issue 28676 on 2010-10-28 by Cédric F. (iuser69):

I'm using net-ldap with active-ldap into my rails project.

It seems something went wrong about the server disconnection handle.

This is what can reproduce the problem

  ldap = Net::LDAP.new(..., :encryption => {:method => :simple_tls})
  ldap.bind(...)
  ldap.search(...) # will succeed
  # wait 15 minutes
  ldap.search(...) # will fail
@jch
Copy link
Member

jch commented Oct 8, 2014

We need to handle RFC 4511 4.4.1 "Notice of Disconnection" for when a server terminates the connection, and also if the connection just drops in the exceptional case.

For user convenience, it's also worth exploring a way to reconnect behind the scenes #11

@mtodd
Copy link
Member

mtodd commented Oct 11, 2014

To address this user's issue, more details are needed. We'd need to know what the "fail" here means: an exception? A server error? Which one?

I'm not sure if this changed since 0.1.1 but we don't keep the connection open between calls to bind and search (and search) so the failure could be unrelated... again, assuming 0.1.1 didn't leave the connection open between these.

Either way, agree with your observation when using Net::LDAP#open { ... }. An on_discussion hook would be great to provide so the user can decide what to do in that case.

@jch jch closed this as completed Oct 31, 2014
@jch
Copy link
Member

jch commented Oct 31, 2014

Closed because no reproducible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants