The Java Developers Almanac 1.4


Order this book from Amazon.

   
Home > List of Packages > javax.naming.ldap  [4 examples]

e495. Setting LDAP Connection Request Controls

This example uses the JNDI/LDAP service provider to connect to an LDAP server on the local machine and initializes its connection request controls.
    try {
        // Create connection controls to use
        Control[] connectCtls = new Control[]{new SomeControl()};
    
        LdapContext ctx = new InitialLdapContext(env, connectCtls);
    } catch (NamingException e) {
    }

 Related Examples
e496. Setting LDAP Context Request Controls
e497. Getting LDAP Response Controls
e498. Performing an LDAP ``Extended'' Operation


© 2002 Addison-Wesley.