Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ClassNotFoundException in JNDI provider is thrown when custom ssl socket factory is used #99
new InitialLdapContext() in JndiConnectionFactory.createInternal can throw a ClassNotFoundException when java.naming.ldap.factory.socket is set and the context classloader of the current thread does not "know" the class. For details refer to http://docs.oracle.com/javase/jndi/tutorial/beyond/misc/classloader.html and http://www.javaworld.com/article/2077344/core-java/find-a-way-out-of-the-classloader-maze.html
PR to fix this: #98
Every time the context classloader is one which is not aware of the ThreadLocalTLSSocketFactory.class.
For us this is a showstopper. Currently we use a forked version of ldaptive with the PR applied but thats not a long term solution. I'd really like to see the PR merged and released. ldaptive is really a great library but it's been a while since the last release. Thx.