secured LDAPS and java

Hi Guys,
how can i set up my LDAP server as a secured authentication (using ssl) for java client application? i’m using SUSE server 10.

sorry, not sure if this is the right please to post my question!!


> i’m using SUSE server 10.

see my recent post at


Hi Platinum
your link is not working!! any help please

> your link is not working!! any help please

it works here, i have no idea why it does not for you…
try here:


Thanks for your replay, please don’t get me wrong but I think the link displays an answer that don’t really related to my question :frowning:

Sorry for my very little experience on Linux, I followed some online tutorials to setup the LDAP server on the ELES 10. It works fine as far as I can get results when using the ldapsearch and when I access it remotely from java client application using the unprotected port 389.

The problem is when I trying to apply the ssl to talk to the server over port 636. i have used ‘openssl’ to generate a CA certificate, server and key certificates. The three certificates added to the /etc/openldap/slapd.conf file.

TLSCACertificateFile /var/myca/cacert.cert
TLSCertificateFile /var/myca/ldap.cert
TLSCertificateKeyFile /var/myca/ldap.key

note: these certificates owned by ldap user and ldap group (chown ldap:ldap /var/myca/*).

also, LDAPS started using /usr/lib/openldap/slapd -h ldaps:///

Then, i have used the ‘openssl s_client -connect’ to test the connection. The command line returns ‘connection refused’ with error number = 29.

so any help please on what is going wrong and how to get it works??? pleasssss