LDAP Modify
Configuration reference for the LDAP Modify Pipes valve and its supported options.
Introduction
Section titled “Introduction”Use this valve to modify an LDAP entry based on values in an item.
An LDAP modify request contains one or more modifications that are applied to the target entry. The following modification types are supported
- ADD
- REPLACE
- DELETE
Each modification uses the name and the value of a property on the current item and therefor item property names must match the LDAP entry names (specified in the LDAP schema). By default the item id is used as the distinguished name (DN) of the entry to modify. If dn_parameter is set, that value is used instead.
Prerequisites
Section titled “Prerequisites”Before using this valve the LdapClient module must be configured and deployed.
Configuration
Section titled “Configuration”Common LDAP valve configuration can be found here.
| Name | Description | Default | Mandatory | Expanded |
|---|---|---|---|---|
add | List of item properties to add. | N/A | ||
replace | List of item properties to replace. | N/A | ||
delete | List of item properties to delete. | N/A | ||
ignore_empty_values | Ignore empty values in add and replace modifications. If all configured attributes have empty values the LDAP request is skipped and the valve succeeds without error. | false | ||
dn_parameter | If not using item.id() as DN value. | N/A |
{ "name" : "LDAPModify", "config" : { "destination" : "default", "dn_parameter" : "${item.dn}", "add" : "mail,mobile" }}Every successful modify operation publishes raw changes to the platform audit trail automatically — there is no audit flag to configure on the valve or the LdapClient anymore. Whether anything is actually recorded depends on whether an Audit module is deployed to consume it.
{ "name": "LDAPModify", "config": { "replace": ["cn"] }}[ { "field": "cn", "operation": "REPLACE", "after_value": "Demo User Modified" }]object_typeuser,package_typeUserUpdated— always, regardless of which attribute is actually modified. Modifying a group'smemberattribute through this valve is still published asUserUpdatedon the group's own DN; use the Audit module'senrichment.ldap.object_types.<type>.reference_attributesconfiguration to attribute such a change to the referenced member insteadobject_id— the DN of the modified entry, taken fromitem.id()(ordn_parameter)- one change per attribute in
add,replace, ordelete;operationreflects the modification type. Adeleteof an entire attribute (no specific value) publishes with noafter_value
Only the after-value of each write is published — this valve does not capture a before-value. See Audit for how published changes are grouped into events and change packages, and for the built-in UI and REST API to view them.