To establish an SSL connection, both the client and the LDAP server must be set up to use SSL. For instructions, see Section 1.2, Integrating SSL with the LDAP Classes.