I've working on implementing UnboundID in-memory ldap server for one of our applications but right from get go i ran into an issue:
I need to be making a connection to our production server once in order to get the schema using :
Schema newSchema = Schema.getSchema(connection);
config.setSchema(newSchema);
The documentation says that to make a connection to LDAP server using ssl i need to be using SSUtil like:
SSLUtil sslUtil = new SSLUtil(new TrustAllTrustManager());
LDAPConnection connection =
new LDAPConnection(sslUtil.createSSLSocketFactory());
connection.connect("server.example.com", 636);
I tired the above and compiler complained of
The constructor LDAPConnection(SSLSocketFactory) is undefined
and when looking into LDAPConnection
there is indeed no such constructor. I'm using unboundid-ldapsdk-se.jar
jar, does anyone know of a way to get around this?