Skip to content

Fortified IDDocs

LDAP Modify

Valve for modifying entries in LDAP v3 directories

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.

Before using this valve the LdapClient module must be configured and deployed.

Common LDAP valve configuration can be found here.

NameDescriptionDefault valueMandatoryExpanded
addList of item properties to add.N/A
replaceList of item properties to replace.N/A
deleteList of item properties to delete.N/A
ignore_empty_valuesIgnore 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_parameterIf not using item.id() as DN value.N/A

When AuditModule is active and the LdapClient is configured with "update": true, each successful modify operation emits an audit event.

Requires "update": true in the LdapClient audit configuration.

{
"name": "LDAPModify",
"config": {
"replace": ["cn"]
}
}
  • entity_id — the DN of the modified entry, taken from item.id()
  • changes — one entry per attribute in add, replace, or delete; action reflects the modification type