Older version2.8 Valves LDAPLDAPAsyncSearchValve

LDAPAsyncSearchValve

Valve for searching an LDAP directory server asynchronous.

If no items exist in the Current Item Set (CIS), the valve will perform the configured search and populate the CIS with the search result entries. If items exist in CIS the valve operates on them and will process all items surviving the common item filtering rules. This means that if an item already exists, search will be made on the item and NOT in the LDAP source configured.

Properties

Name Description Default value Mandatory Supports property expansion
connection_ref Id of LDAP connection to use. Must refer to a connection of type 'LDAP'. Yes No
attributes List of attributes to perform operations on. If left blank, all attributes will be returned. No No
item_id_pattern Regex pattern for item id's to perform operations on. Items with id's that doesnt match the regex will be filtered out. '.*' (include all items ) No No
base_dn Search base DN. Yes No
scope LDAP search scope. Supported values are SUB, ONE or BASE. SUB Yes No
size_limit Number of results. Set to 0 for unlimited matches. 0 Yes No
filter_template The LDAP search filter to be used. (objectclass=*) Yes No
binary_attrs List of attributes that should be treated as binary. No No
allow_multiple Flag turning on support for multiple result entries when in item iteration mode. false No No
multiple_use_first Flag turning on result entry truncation. if multiple result entries, only the first will be returned. Works in both search and item iteration mode. false No No

Example Configuration

{
    "name": "LDAPAsyncSearchValve",
    "config": { 
        "connection_ref":"b0f2ddff-9585-47c5-9286-2bee2b731197",
        "base_dn":"dc=phenixid,dc=com",
        "scope":"SUB",
        "size_limit":"0",
        "filter_template":"samAccountName={{request.User-Name}}",
        "attributes":"description,mobile" 
    }
}

Requirements