LDAP
Discover more about the LDAP component and how to use it on the Digibee Integration Platform.
LDAP makes operations on a LDAP server.
Parameters
Take a look at the configuration parameters of the component. Parameters supported by Double Braces expressions are marked with (DB)
.
Parameters additional information
Authentication DN
The Authentication DN parameter must be configured with the full path to the aimed user. With that, if Distinguished Name is equal to "CN=UserExample,OU=FOLDER1,DC=abc,DC=com,DC=br"
, the Authentication DN parameter will be configured with "OU=FOLDER1,DC=abc,DC=com,DC=br"
.
The "CN=UserExample" configuration must be used in the username of the account configured in the component, which means that the username receives the "UserExample" value.
LDAP in Action
You can:
use a fixed value:
(dnOperation = "ou=system,cn=users")
get some JSON of the message, that will search the "data" object of the message:
(dnOperation = "{{ message.$.dn }}
combine both examples:
(dnOperation = " ou={{ message.$.dn }}")
searchOperation: integrates between 0 and 2 used to search, as:
0 -> Base Object
1 -> One Level
2 -> Full Subtree
modifyOperation: integrates between 0 and 3 used to modify, as:
0 -> Add attribute
1 -> Exclude attribute
2 -> Substitute attribute
3 -> Increment attribute
filter: filters configurations for the same search operation.
Example: filter "(objectClass=)"
You can:
use a fixed value:
filter = ("objectClass=)"
get some JSON of the message, that will search the 'data' object:
filter = "{{ message.$.filter }}
combine both examples:
filter = "objectClass={{ message.$.filter }}"
entries: the object used to add or modify the entries in LDAP server.
You can:
used a fixed value:
filter = ("objectClass":["top","person"],"cn":"test_ad","sn":"test_sn"}
get some JSON of the message, that will search the 'data' object of the message:
entries = "{{ message.$.entries }}
combine both examples:
entries = {"objectClass":["top","person"],"cn":"{{ message.$.entries }}","sn":"test_sn"}"
operation: the operation you want to execute in LDAP server: SEARCH / ADD / MODIFY / DELETE
useSsl: if true, it will be connected using SSL (safe connection); otherwise, it won't be connected
failOnError: if true, an error will suspend the execution of the pipeline
LDAP needs authentication. For that, you must create an account with administrator privileges (BASIC type) and use it in the component.
Important: the username to be used in the account must be the field "name" configured in the LDAP server.
To convert Double Braces, we use JSON Path specifications. Click here to know more.
Messages flow
Operation Search
Input
Output
Operation Add
Input
Payload
Output
Operation Modify
Input
Payload
Output
Operation Delete
Input
Output
LDAP supports static Double Braces in the following parameters previously specified:
operation
host
dnAuthentication
port
modifyOperation
searchOperation
useSsl
Last updated