
LDAP IonToLdif
CertifiedConvert Ion records to LDIF for LDAP
LDAP IonToLdif
Convert Ion records to LDIF for LDAP
Transforms Ion files containing LDAP entries or change records into LDIF files stored in internal storage. Handles add/delete/modify/moddn records and logs malformed items while continuing.
type: io.kestra.plugin.ldap.IonToLdifExamples
YAML: Make LDIF entries from ION ones.
id: ldap_ion_to_ldif
namespace: company.team
inputs:
- id: file1
type: FILE
- id: file2
type: FILE
tasks:
- id: ion_to_ldif
type: io.kestra.plugin.ldap.IonToLdif
inputs:
- "{{ inputs.file1 }}"
- "{{ inputs.file2 }}"
Properties
inputs *array
Ion input URIs
URIs to Ion files in internal storage; each entry or change record is translated to LDIF.
Example of an ION file content that may be inputted:
# simple entry
{dn: "cn=bob@orga.com,...",attributes: {description: ["Some description","Some other description"]}}
# modify changeRecord
{dn: "cn=triss@orga.com,...",changeType: "modify",modifications: [{operation: "DELETE",attribute: "description",values: ["Some description 3"]}]}
# delete changeRecord
{dn: "cn=triss@orga.com,...",changeType: "delete"}
# moddn changeRecord (newrdn and deleteoldrdn are mandatory, newsuperior optional)
{dn: "cn=triss@orga.com,...",changeType: "moddn",newDn: {newrdn: "cn=triss@orga.com",deleteoldrdn: false,newsuperior: "ou=expeople,dc=example,dc=com"}}
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150Outputs
urisList array
LDIF output URIs
URIs in internal storage for the generated LDIF files.
Example of an LDIF file content that may be outputted:
# simple entry
dn: cn=bob@orga.com,ou=diffusion_list,dc=orga,dc=com
description: Some description
# modify changeRecord
dn: cn=triss@orga.com,ou=diffusion_list,dc=orga,dc=com
changetype: modify
delete: description
description: Some description 3
-
# delete changeRecord
dn: cn=triss@orga.com,ou=diffusion_list,dc=orga,dc=com
changetype: delete
# moddn (newrdn, then deleteoldrdn, then optional newsuperior)
dn: cn=triss@orga.com,ou=diffusion_list,dc=orga,dc=com
changetype: moddn
newrdn: cn=triss@orga.com
deleteoldrdn: 1
Metrics
entries.found counter
The total number of entries found in the input ION files.
entries.translated counter
The total number of entries successfully translated to LDIF.