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

ThreadLocalTLSSocketFactory not reinitialized by JNDI #24

Closed
dfish3r opened this Issue Feb 13, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@dfish3r
Copy link
Member

dfish3r commented Feb 13, 2015

By default the JNDI provider will inject a ThreadLocalTLSSocketFactory in order to perform hostname verification for LDAPS connections.
This functionality works in scenarios where a connection is created for every operation.
(i.e. JAAS)

However when using a pool of connections this will cause problems if any connection needs to reopen.
The thread local data will be gone and the connection will fail.

dfish3r added a commit that referenced this issue Feb 16, 2015

Fixes issue #24.
Store the SslConfig and set in on ThreadLocalTLSSocketFactory if necessary.
@dfish3r

This comment has been minimized.

Copy link
Member

dfish3r commented Feb 16, 2015

Fixed in 4718a30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment