Connecting to a TLS enabled URL



Introduction

You may use this in cases where you want to perform an LDAP  Directory search.

try {
    // Create connection controls to use
    Control[] connectCtls = new Control[]{newSomeControl()};

    LdapContext ctx = new InitialLdapContext(env, connectCtls);
} catch (NamingException e) {
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.