directory-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadivel M" <vadive...@telesisglobal.com>
Subject [ApacheDS] Not able to connect using LDAP API
Date Sat, 08 Feb 2014 13:30:52 GMT
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


Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message