Define an LDAP query

As part of creating or modifying a pattern, you can use the LDAP query operation to query an LDAP directory.

Before you begin

Navigate to the relevant pattern step:

  1. On the pattern form:
    • Select the relevant identification section for Discovery.

      Or

    • Select the relevant identification or connection section for Service Mapping.
  2. Select the relevant pattern step or click to add a step.

Role required: pd_admin

Basic knowledge of programming is desirable.

Procedure

  1. Select LDAP query from the Operation list.
  2. Fill in the fields, as appropriate.
    Field Description
    Base DN Specify the point from where the LDAP server searches for users.
    Host Specify the name of the server that hosts the LDAP server.
    Port Specify the port name.
    Query Specify the query parameters.
    Scope Specify the query scope from the list:
    • Sub Tree: the object and all descendants.
    • Object: the object only.
    • One Level: the object and one level below.
  3. In the Variable Table, click Add and define the table name and column name to hold the query result.
    For multiple results, click Add for each additional column that is needed.
  4. If in Debug mode, test the step by clicking Test and checking that the operation brings the result you expected.

Example

This operation is used in This item
Hierarchy Application > Exchange Server Component
CI Type ExchangeBackEndServer
Pattern ExchangeBackEndServer On Windows Pattern
Section Storage connectivity
Step number and Name 2. Query ldap - msExchStorageGroup.msExchESEParamSystemPath

To find storage devices connected to the Exchange BackEnd Server, you can use the following LDAP query: "(objectclass=msExchStorageGroup).” The operation result is stored in a variable table with the following fields: msExchESEParamSystemPath and msExchStorageGroupFiles1v. You can use variables to specify Base DN that indicates where to begin the search, as well as the host name and port.


Example of the LDAP Query Usage

What to do next