Hi,
I tried to create a connection using LDAP API as follows,
LdapNetworkConnection connection = new
LdapNetworkConnection("localhost",10389);
I get the following error
at
org.apache.directory.ldap.client.api.LdapConnectionConfig.setDefaultTrustMan
ager(LdapConnectionConfig.java:134)
at
org.apache.directory.ldap.client.api.LdapConnectionConfig.<init>(LdapConnect
ionConfig.java:110)
at
org.apache.directory.ldap.client.api.LdapNetworkConnection.<init>(LdapNetwor
kConnection.java:445)
I have the following dependency defined in my POM ,
<dependency>
<groupId>org.apache.directory.api</groupId>
<artifactId>api-all</artifactId>
<version>1.0.0-M20</version>
</dependency>
But the same works with Apache Directory Studio. Please find the attachment.
Regards,
Vadivel