Test SSL LDAPS connection

A useful code to check SSL LDAPS connection

http://java.ittoolbox.com/groups/technical-functional/java-l/ldap-test-connection-4747814