LDAP Add

LDAP Add

Certified

Add LDIF entries to LDAP

Reads LDIF records from one or more URIs and issues LDAP add requests for each entry. Operations are independent (non-transactional) and rely on server ACLs. If failOnError is true, the task stops and fails on the first error. If false, failures on a given entry are logged and processing continues.

yaml
type: io.kestra.plugin.ldap.Add

Insert entries in LDAP server.

yaml
id: ldap_add
namespace: company.team

tasks:
  - id: add
    type: io.kestra.plugin.ldap.Add
    description: What your task is supposed to do and why.
    userDn: cn=admin,dc=orga,dc=en
    password: "{{ secret('LDAP_PASSWORD') }}"
    inputs:
       - "{{outputs.someTask.uri_of_ldif_formated_file}}"
    hostname: 0.0.0.0
    port: 18060
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.

For Kestra CLI, replace LATEST with a specific version or version range to pin the plugin version.

Properties

Hostname

Hostname for connection.

SubTypestring

LDIF input URIs

One or more 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] }}); every entry is attempted separately. If failOnError is true, an error stops the task.

Password

User password for connection.

Port

A whole number describing the port for connection.

User

Username for connection.

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.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset 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.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
Defaultsimple
Possible Values
simplegssapi

Authentication method

Authentication method to use with the LDAP server.

Defaulttrue

Whether to fail the task on an LDAP error

If true, the task will fail when an LDAP operation fails. If false, it will only log the error and finish with a SUCCESS state. Defaults to true.

Kerberos key distribution center

Needed for GSSAPI authentication method. If this is not provided, an attempt will be made to determine the appropriate value from the system configuration.

Realm

Needed for GSSAPI authentication method. If this is not provided, an attempt will be made to determine the appropriate value from the system configuration.

SubTypestring
Default["AUTH_CONF","AUTH_INT","AUTH"]
Possible Values
AUTHAUTH_INTAUTH_CONF

saslAllowedQoP

Used for GSSAPI authentication method only. The list of allowed qualities of protection that may be used for communication after authentication has completed, ordered from most preferred to least preferred.

By default, the full list is allowed, sorted from the most secure to the least secure: - AUTH_CONF # This ensures that third-party observers will not be able to decipher communication between the client and server (i.e., that the communication will be encrypted). - AUTH_INT # This ensure that the communication cannot be altered in an undetectable manner. - AUTH # Only authentication is to be performed, with no integrity or confidentiality protection for subsequent communication.

SSL Configuration

Configure SSL/LDAPS connection parameters.

Definitions
insecureTrustAllCertificatesbooleanstring

Whether to disable checking of the remote SSL certificate.

Only applies if no trust store is configured. Note: This makes the SSL connection insecure and should only be used for testing. If you are using a self-signed certificate, set up a trust store instead.

The total number of successful additions to the LDAP server.

The mean duration of LDAP additions in milliseconds.

The total number of LDIF addition requests made.