Hi Syed, Try this link that has already been suggested to you in the previous thread ... you should see an example of how to specify a trustmanager that won't do any certificate validation. Once you get this working, then, you will build on it and then use a trustmanager that would actually perform certificate validation.
http://svn.apache.org/viewvc/directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapSSLConnectionTest.java?revision=1567956&view=markup From: Syed Mudassir Ahmed <[email protected]> To: [email protected], Date: 11/05/2014 12:16 PM Subject: Re: Secured LDAP Account No, I don't. Good question. I have no idea as well. Can you please provide an example/reference that I can follow? Thanks, Syed. Syed M Ahmed Senior Member of Technical Staff Gaian Solutions India Pvt Ltd On Wed, Nov 5, 2014 at 10:31 PM, Ike Ikonne <[email protected]> wrote: > Hi Syed, > > So, in your Java program, do you have the server certificate in the > keystore that your Java program is using to establish SSL connection > with the LDAP server? > > Thanks, > > Ike > > > > > From: Syed Mudassir Ahmed <[email protected]> > To: [email protected], > Date: 11/05/2014 10:57 AM > Subject: Re: Secured LDAP Account > > > > Yes, > Certificate is generated on the server side. And port is 636. > I am able to connect to my server through LDAPBrowser using LDAPS > protocol and 636 port number. > But not using java program. > > Thanks, > Syed. > > Syed M Ahmed > Senior Member of Technical Staff > Gaian Solutions India Pvt Ltd > > > On Wed, Nov 5, 2014 at 9:56 PM, Ike Ikonne <[email protected]> wrote: > > > Hi all, > > > > Do you have the LDAP Server certificate included in your > > TrustManager Algorithm? Also, make sure that you are using > > secure socket to bind to port 636. > > > > Ike > > > > > > > > > > From: Syed Mudassir Ahmed <[email protected]> > > To: [email protected], > > Date: 11/05/2014 10:14 AM > > Subject: Secured LDAP Account > > > > > > > > I am trying to obtain an ldap connection. Using port 389 I am > > successfully > > able to get connection. > > But when I try to use LdapNetworkConnection(<IP Address>, 636, true) and > > then invoke bind(dn, password), I am getting PROTOCOL_ERROR. > > Using LdapBrowser I am able to connect to my LDAP server over port 636. > > But through Java program its not getting connected. Can u help? > > > > Thanks, > > Syed. > > > > Syed M Ahmed > > Senior Member of Technical Staff > > Gaian Solutions India Pvt Ltd > > > > > >
