Hi,
I am using Netscape LDAP Java SDK
4.1. I am trying to connect to online OpenLDAP server running over SSL. LDAP
Browser is successfully connected to the OpenLDAP server over SSL. But
every time when I run my own code I get the following
error.
netscape.ldap.LDAPException: SSL
connection to ldap.openldap.org:636 (91); Cannot connect to the LDAP
server
at netscape.ldap.factory.JSSESocketFactory.makeSocket(JSSESocketFactory.java:86) at netscape.ldap.LDAPConnSetupMgr.connectServer(LDAPConnSetupMgr.java:411) at netscape.ldap.LDAPConnSetupMgr.openSerial(LDAPConnSetupMgr.java:343) at netscape.ldap.LDAPConnSetupMgr.connect(LDAPConnSetupMgr.java:237) at netscape.ldap.LDAPConnSetupMgr.openConnection(LDAPConnSetupMgr.java:163) at netscape.ldap.LDAPConnection.connect(LDAPConnection.java:1033) at netscape.ldap.LDAPConnection.connect(LDAPConnection.java:915) at netscape.ldap.LDAPConnection.connect(LDAPConnection.java:759) at LDAPConnector.connect(LDAPConnector.java:20) Here is my source
code:
LDAPConnection m_ldpCon;
System.out.println("Creating LDAPS
Connection");
JSSESocketFactory obj_jsseSocketFactory = new JSSESocketFactory(null); m_ldpCon = new LDAPConnection(obj_jsseSocketFactory);
m_ldpCon.connect("ldap.openldap.org", 636);
Plz help me to get rid of this
error ...?
Regards,
-Yasir
|
Attachment:
smime.p7s
Description: S/MIME cryptographic signature