ldap.json•6.32 kB
{
"nodeType": "n8n-nodes-base.ldap",
"displayName": "Ldap",
"description": "Interact with LDAP servers",
"version": 1,
"properties": [
{
"name": "dn",
"displayName": "DN",
"type": "string",
"default": "",
"description": "The distinguished name of the entry to compare",
"placeholder": "e.g. ou=users,dc=n8n,dc=io",
"required": true,
"displayOptions": {
"show": {
"operation": [
"compare"
]
}
}
},
{
"name": "id",
"displayName": "Attribute ID",
"type": "options",
"default": [],
"description": "The ID of the attribute to compare",
"required": true,
"displayOptions": {
"show": {
"operation": [
"compare"
]
}
}
},
{
"name": "value",
"displayName": "Value",
"type": "string",
"default": "",
"description": "The value to compare",
"displayOptions": {
"show": {
"operation": [
"compare"
]
}
}
},
{
"name": "targetDn",
"displayName": "New DN",
"type": "string",
"default": "",
"description": "The new distinguished name for the entry",
"placeholder": "e.g. cn=nathan,ou=users,dc=n8n,dc=io",
"required": true,
"displayOptions": {
"show": {
"operation": [
"rename"
]
}
}
},
{
"name": "attributes",
"displayName": "Attributes",
"type": "fixedCollection",
"default": {},
"description": "Attributes to add to the entry",
"placeholder": "Add Attributes",
"required": true,
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"operation": [
"create"
]
}
}
},
{
"name": "baseDN",
"displayName": "Base DN",
"type": "string",
"default": "",
"description": "The distinguished name of the subtree to search in",
"placeholder": "e.g. ou=users, dc=n8n, dc=io",
"required": true,
"displayOptions": {
"show": {
"operation": [
"search"
]
}
}
},
{
"name": "searchFor",
"displayName": "Search For",
"type": "options",
"default": [],
"description": "Directory object class to search for",
"displayOptions": {
"show": {
"operation": [
"search"
]
}
}
},
{
"name": "customFilter",
"displayName": "Custom Filter",
"type": "string",
"default": "(objectclass=*)",
"description": "Custom LDAP filter. Escape these chars * ( ) \\\\ with a backslash \"\\\".",
"displayOptions": {
"show": {
"operation": [
"search"
],
"searchFor": [
"custom"
]
}
}
},
{
"name": "attribute",
"displayName": "Attribute",
"type": "options",
"default": [],
"description": "Attribute to search for",
"required": true,
"displayOptions": {
"show": {
"operation": [
"search"
]
}
}
},
{
"name": "searchText",
"displayName": "Search Text",
"type": "string",
"default": "",
"description": "Text to search for, Use * for a wildcard",
"required": true,
"displayOptions": {
"show": {
"operation": [
"search"
]
}
}
},
{
"name": "returnAll",
"displayName": "Return All",
"type": "boolean",
"default": false,
"description": "Whether to return all results or only up to a given limit",
"displayOptions": {
"show": {
"operation": [
"search"
]
}
}
},
{
"name": "limit",
"displayName": "Limit",
"type": "number",
"default": 50,
"description": "Max number of results to return",
"typeOptions": {
"minValue": 1
},
"displayOptions": {
"show": {
"operation": [
"search"
],
"returnAll": [
false
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Comma-separated list of attributes to return. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"placeholder": "Add option",
"displayOptions": {
"show": {
"operation": [
"search"
]
}
}
},
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "search",
"description": "Compare an attribute",
"options": [
{
"name": "Compare",
"value": "compare",
"description": "Compare an attribute"
},
{
"name": "Create",
"value": "create",
"description": "Create a new entry"
},
{
"name": "Delete",
"value": "delete",
"description": "Delete an entry"
},
{
"name": "Rename",
"value": "rename",
"description": "Rename the DN of an existing entry"
},
{
"name": "Search",
"value": "search",
"description": "Search LDAP"
},
{
"name": "Update",
"value": "update",
"description": "Update attributes"
}
]
},
{
"name": "nodeDebug",
"displayName": "Debug",
"type": "boolean",
"default": false
}
],
"credentialsConfig": [
{
"name": "ldap",
"required": true
},
{
"name": "operation",
"required": false
}
],
"io": {
"inputs": [],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": []
}
}