Skip to content

Net::LDAP#open does not cache bind result - #331

Closed
vroldanbet wants to merge 5 commits into
ruby-ldap:masterfrom
vroldanbet:ldap-open-bug
Closed

Net::LDAP#open does not cache bind result#331
vroldanbet wants to merge 5 commits into
ruby-ldap:masterfrom
vroldanbet:ldap-open-bug

Conversation

@vroldanbet

@vroldanbet vroldanbet commented Nov 12, 2019

Copy link
Copy Markdown
Contributor

We identified that clients cannot safely rely on Net::LDAP#get_operation_result when using Net::LDAP#open because @result is not set.

As a consequence, clients calling Net::LDAP#get_operation_result would get the previous cached @result. Yikes.

we identified that clients cannot safely rely on
Net::LDAP#get_operation_result when using Net::LDAP#open
because @Result is not set.

As a consequence,clients calling
Net::LDAP#get_operation_result would get the previous
last cached result @Result.
may have broken in the most recent slapd version for Ubuntu Xenial?
aligns implementation of open with other methods, so the result
becomes accessible via get_operation_result
@vroldanbet

vroldanbet commented Nov 12, 2019

Copy link
Copy Markdown
Contributor Author

In 8135bbe we can see the 🐛 manifesting. It expected code 49 (invalid creds) but instead got 0.

In dd2a880 the test goes green after introducing the fix in cb4b48c

Unfortunately CI is broken. I tried to address it, but it seems TLS configuration is not being set properly, and so TLS integration tests are failing 😭

@vroldanbet

Copy link
Copy Markdown
Contributor Author

I'm addressing CI build in #333

@vroldanbet

Copy link
Copy Markdown
Contributor Author

Superseded by #334, which contains the fixed CI build

@vroldanbet vroldanbet closed this Nov 15, 2019
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.

1 participant