Connecting to a LDAP Server

Home | Tutorials | Compare


Once you have downloaded and installed the LDAP Admin Tool, click on the LDAP Admin Tool shortcut to start the application. When the application is started it will look like the following:



  • Click the Create a new Connection link or Click the New Connection button from the main tool bar. The New LDAP Connection wizard opens.
  • Fill out the first wizard page that is displayed as follows:
    1. The “Connection Name” field should contain a unique name for this connection, this can be anything.
    2. The “Hostname” field should contain the address of the system running the directory instance (DNS name or IP Address of the machine. For example localhost or
    3. The “Port” field should contain the port number on which the directory server is listening for client connections. In most cases it is 389 for non SSL connections and 636 for SSL connections. If you want to use SSL, then you will also need to check the “Use SSL/TLS” check box.
    4. The "Base DN" field can be left blank in most cases. However, if you want you can use the "Fetch Base DNs" button to select a base DN from the namingContexts attribute of the root DSE, or you can enter a specific base DN.
    5. To make sure that you entered the information correctly, click on the “Test Connection” button.
    6. If you only intend to browse the data and don't want to make any changes in the server, and if the server is configured to allow unauthenticated access, then you can click the “Finish” button to connect to directory server. However, if the server does not allow anonymous access, or if you may want to make any changes to the data in the server, then you will likely need to provide values for the "Bind DN" and "Password" fields. To enter credentials click the “Next” button.


New Connect connection wizard page 1


    1. To provide values for “Bind DN” and “Password”, first click the “Simple Authentication” radio button, this will enable the fields. Now enter the values and to make sure you typed in the right values click the “Check Credentials” button.
    2. If you want to provide the optional values click the “Next” button to go to third page else click “Finish” to connect to the directory server.


New LDAP connection wizard 2


In the wizard's third page select the additional connection parameter. If you are not sure what they should be just leave them to default and click Finish to connect to directory server.

    1. Derefence Aliases field sets a preference indicating whether or not aliases should be dereferenced, and if so, when

Never - do not dereference aliases
Searching - dereference aliases when searching but not when finding the base
Finding - dereference aliases when finding
Always - dereference aliases when finding the base object and when searching

    1. Entry count Limit should contain the maximum number of search results to return for a search request. 0 means no limit. Default is 1000.
    2. Timeout should contain the maximum time in seconds that the server should spend returning search results. This is a server-enforced limit. The default of 0 means no time limit.
    3. Enable Referrals specifies whether to automatically follow referrals or not. Check the box to follow referrals automatically. Default is true.
    4. To connect to the server on finish check the “Connect now” check box.


New Connection Wizard page 3


Click Finish to connect to directory server.


Unable to Read Schema

While connecting if you get a warning like this, you need to connect to directory server with credentials.


LDAP Connection unable to read schema


There are many ways to provide credentials for connection; the simplest way to provide credentials is to close the connection and click on the Open Connection Button from the tool bar, select the connection and enter the User DN and Password values or click configure and provide User DN and Password in the credentials tab.


LDAP Connection Open Connection



Don’t know the complete User DN to bind with?

  1. Connect to the directory server using anonymous bind (Click Finish on the wizard page 1).
  2. Once you are connected to the server
  3. Select the entry to bind with ..  and select the Rebind using this entry from the right click context menu
  4. Enter the password and click save userDN and Password if you want this userDN and password to be used for future connections.


LDAP Connection - Rebind Connection

See Also: