In this article
Table of Contents | ||||
---|---|---|---|---|
|
...
Type | Format | Number of views | Examples of Upstream and Downstream Snaps | Description |
---|---|---|---|---|
Input | Document |
| File reader followed by any file Parser followed by Structure. | Existing distinguished name, Filter attributes (Filter keys, Filter values). |
Output | Document |
| Any file Formatter followed by File Writer. | The output data and the searched entries based on the specifed existing distinguished name. |
Error | Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter while running the Pipeline by choosing one of the following options from the When errors occur list under the Views tab. The available options are:
Learn more about Error handling in Pipelines. |
...
A valid Active Directory Basic Auth Account.
Limitations and Known Issues
...
Field | Field Type | Description | |||||||||||||||
Label* Default Value: Search | String | Specify a unique name for the Snap. | |||||||||||||||
Existing distinguished name* Default Value: None CN=AbcUser,CN=Users,DC=server,DC=company,DC=com. In this example, to refer to the entire user list, you can remove the initial attribute, CN=AbcUser. | String/Expression | Specify the LDAP API references an LDAP object by its distinguished name (DN). A DN is a sequence of relative distinguished names (RDN) connected by commas. An RDN is an attribute with an associated value in the form attribute=value, normally expressed in a UTF-8 string format. The typical RDN attribute types include: DC = domainComponent, CN = commonName, OU = organizationalUnitName,O = organizationName, STREET = streetAddress, L = localityName,ST = stateOrProvinceName, C = countryName, UID = userid.
You can also use special characters in the distinguished name. See the section Learn more about Using Special Characters in Distinguished Name below. | |||||||||||||||
Page size* Default Value: 1000 | Integer | Specify the size of the page to receive search results. The maximum value accepted by Active Directory is 1000. See Refer to https://msdn.microsoft.com/en-us/library/ms180880(v=vs.80).aspx for for more information.
| |||||||||||||||
Limit Default Value: 0 | Integer | Specify the number of search records to be fetched from the Active Directory.
| |||||||||||||||
Scope type Default Value: SUBTREE_SCOPE | Dropdown list | Specify the scope type to search against. The options available include:
| |||||||||||||||
Filter Attributes | Field set | Specify the key-value pairs to filter the search results.
| |||||||||||||||
Filter keys | String/Expression/Suggestion | The suggested filter attributes based on the provided Existing distinguished name property. | |||||||||||||||
Filter values | String/Expression | The corresponding values of the suggested filter key to perform an effective search. | |||||||||||||||
Returning Attributes | Use this field set to define the attributes that should return in the search results. This field set contains the Attribute Keys field. Click to add a row for defining the attribute key. | ||||||||||||||||
Attribute Keys
| String/Expression/Suggestion | Specify the attribute keys that should return in the search results.
| |||||||||||||||
Group results Default Value: Deselected | Checkbox | Select to group the output result in a single array.
| |||||||||||||||
Pass through Default Value: Deselected | Checkbox | Select to include the entire input data in the Snap's output. The Snap includes this data within the $original field in the output. In certain scenarios, the Snap may be unable to process the entire input due to limitatons imposed by the endpoint's API. In such cases, we recommend that you select the Pass through checkbox to ensure that the unprocessed input is not lost. You can process the remaining input data using more of the same Snaps in the Pipeline. Alternatively, you can also write the original data into a separate file using a combination of the Mapper Snap and the File Writer Snap. | |||||||||||||||
| Dropdown list |
Note | |
Additional Information
The following table indicates the output the Search Snap returns for a given Distinguished name.
...
Comma (,) and Equals (=) have a special meaning in the distinguished name, as comma (,) is used to separate RDNs and equals (=) is used for designating key value pairs (key=value). Therefore, these must still be prefixed with an escape character to be passed as special characters. For example, \,
or \=
.
Using Special Characters
For instance, you need to specify a distinguished name, such as CN=man/eesh,CN=Users,DC=ad1,DC=clouddev,DC=snaplogic,DC=com, where the common name man/eesh contains a special character. This Snap supports both scenarios:
...