To configure an LDAP connection, you set the details of your LDAP server. You can test the connection to make sure that you entered the correct settings and the user and group attributes are mapped correctly. When you have a successful LDAP connection, you can synchronize the user and group information with the LDAP server at any time.

Prerequisites

Procedure

  1. From the primary left navigation panel, select Administration.
  2. From the secondary left panel, under Identity Providers, select LDAP.
    The current LDAP settings are displayed.
  3. On the Custom LDAP tab, click Edit.
  4. In the Connection tab, enter the required information for the LDAP connection.
    Required Information Description
    Server The host name or IP address of the LDAP server.
    Port

    The port number on which the LDAP server is listening.

    For LDAP, the default port number is 389. For LDAPS, the default port number is 636.

    Base distinguished name

    The base distinguished name (DN) is the location in the LDAP directory where VMware Cloud Director to connect.

    To connect at root level, enter only the domain components, for example, DC=example,DC=com.

    To connect to a node in the domain tree structure, enter the distinguished name for that node, for example, OU=ServiceDirector,DC=example,DC=com.

    Connecting to a node limits the scope of the directory available to VMware Cloud Director.

    Connector type The type of your LDAP server. Can be Active Directory or OpenLDAP.
    Use SSL If your server is LDAPS, select this check box.
    Authentication method Simple authentication consists of sending the user's DN and password to the LDAP server. If you are using LDAP, the LDAP password is sent over the network in plain text.

    If you want to use Kerberos, you must configure the LDAP connection by using the vCloud API.

    User name Enter the full LDAP distinguished name (DN) of a service account with domain admin rights. VMware Cloud Director uses this account to query the LDAP directory and retrieve user information.

    If the anonymous read support is enabled on your LDAP server, you can leave these text boxes blank.

    Password

    The password for the service account that connects to the LDAP server.

    If the anonymous read support is enabled on your LDAP server, you can leave these text boxes blank.

  5. Click the User Attributes tab, examine the default values for the user attributes, and, if your LDAP directory uses different schema, modify the values.
  6. Click the Group Attributes tab, examine the default values for the group attributes, and, if your LDAP directory uses different schema, modify the values.
  7. For VMware Cloud Director 10.5.1 and later, if you want to customize the Sign in with LDAP button label that appears on the VMware Cloud Director login page, enter a new custom button text.

    You can enter up to 24 symbols. You can use special characters and accented letters. If you want to revert to the default text, delete the custom label. The default button label is localized, and depending on your browser language settings, the text might appear in a different language. Custom labels always appear as you enter them.

  8. Click Save.
  9. If you selected the Use SSL check box, and if the certificate of the LDAPS server is not yet trusted, on the Trust Certificate window, confirm if you trust the certificate presented by the server endpoint.
  10. To test the LDAP connection settings and the LDAP attribute mappings:
    1. Click Test
    2. Enter the password of the LDAP server user that you configured and click Test.
      If connected successfully, a green check mark is displayed.

      The retrieved user and group attribute values are displayed in a table. The values that are successfully mapped to LDAP attributes are marked with green check marks. The values that are not mapped LDAP attributes are blank and marked with red exclamation marks.

    3. To exit, click Cancel.
  11. To synchronize VMware Cloud Director with the configured LDAP server, click Sync.
    VMware Cloud Director synchronizes the user and group information with the LDAP server regularly depending on the synchronization interval that you set in the general system settings.
    Wait a few minutes for the synchronization to finish.

Results

You can import users and groups from the newly configured LDAP server.