LDAP LdifToIon
Certified
Convert LDIF records to Ion
LDAP LdifToIon
Convert LDIF records to Ion
Reads LDIF entries or change records and emits Ion documents stored in internal storage. Supports add/delete/modify/moddn records; malformed items are logged and skipped.
type: io.kestra.plugin.ldap.LdifToIonExamples
Make ION entries from LDIF ones.
id: ldap_ldif_to_ion
namespace: company.team
inputs:
- id: file1
type: FILE
- id: file2
type: FILE
tasks:
- id: ldif_to_ion
type: io.kestra.plugin.ldap.LdifToIon
inputs:
- "{{ inputs.file1 }}"
- "{{ inputs.file2 }}"
Installation
Our standard Docker images already include this plugin. If you use a -slim image or another setup, install it with the following command:
kestractl plugins get io.kestra.plugin:plugin-ldap --compatible-for $KESTRA_VERSION For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.
Properties
inputs *array
LDIF input URIs
URIs to LDIF files in internal storage, given as a list or as a single expression that renders to a list (e.g. {{ outputs.convert_to_ldif.urisList }}; wrap a single URI as {{ [outputs.my_task.uri] }}); entries and change records are converted in order.
Example of an LDIF file content that may be inputted:
# simple entry
dn: cn=bob@orga.com,ou=diffusion_list,dc=orga,dc=com
description: Some description
someOtherAttribute: perhaps
# modify changeRecord
dn: cn=triss@orga.com,ou=diffusion_list,dc=orga,dc=com
changetype: modify
delete: description
description: Some description 3
-
add: description
description: Some description 4
-
# delete changeRecord
dn: cn=triss@orga.com,ou=diffusion_list,dc=orga,dc=com
changetype: delete
# moddn / modrdn must specify newrdn, then deleteoldrdn, then an optional newsuperior
dn: cn=triss@orga.com,ou=diffusion_list,dc=orga,dc=com
changetype: moddn
newrdn: cn=triss@orga.com
deleteoldrdn: 1
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
Ion output URIs
URIs in internal storage for the generated Ion files.
Example of an ION file content that may be outputted:
# 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"}}
Metrics
entries.found counter
The total number of entries found in the LDIF file.
entries.translated counter
The total number of entries successfully translated to ION format.