Class SearchBindAsync

java.lang.Object
org.forgerock.opendj.examples.SearchBindAsync

public final class SearchBindAsync extends Object
An interactive command-line client that performs a search and simple bind using the asynchronous APIs.
The client prompts for email address and for a password, and then searches based on the email address, to bind as the user with the password.
If successful, the client displays the common name from the user's entry.
  • host - host name of the directory server
  • port - port number of the directory server
  • base-dn - base DN for the search, e.g. dc=example,dc=com
All arguments are required.
  • Method Details

    • main

      public static void main(String[] args)
      Prompts for email and password, search and bind, then display message.
      Parameters:
      args - The command line arguments: host, port, base-dn.