LDAP n8n integrationAutomate LDAP with n8n.
Directory work is where most automations stop. The LDAP n8n integration gives a workflow 6 operations on a single node: search, compare, create, update, rename and delete entries. No trigger node ships with it, so a Schedule Trigger or a Webhook starts the run. Aimed at IT and ops teams.
Verified Trustpilot reviews · AI, automation & growth agency
What does the LDAP n8n integration actually do?
The LDAP n8n integration links a workflow to a directory server through LDAP, the protocol those servers speak. One credential holds the server address and the account n8n logs in as, and one node then reads and writes entries in that directory: 6 operations, a single resource, no trigger. The directory stops being the manual step between two tools.
First scenario, a joiner list that ends inside the directory. A Schedule Trigger reads the new rows of a Google Sheets tab, Create a new entry writes each person at the distinguished name the workflow builds, and Update attributes fills the rest from the same row. Nobody retypes a thing.
Second scenario, a leaver who is gone everywhere on the same day. Rename the DN of an existing entry gives the account the distinguished name your policy uses for departures, or Delete an entry takes it out for good, and a note lands in Slack so the team sees it happened rather than hoping it did.
Third scenario, a directory export that feeds a report. Search LDAP walks the subtree under a Base DN, Return All keeps it from stopping early, and the entries land in Postgres where anyone can query them without touching the directory itself.
Here is the part worth reading twice. On a typical n8n integration, a missing operation sends you to the HTTP Request node, which calls the tool's REST API with the same credential. Not here. The LDAP credential opens a connection to a directory server, not an HTTP endpoint, so HTTP Request has nothing to call. The recourse inside this node is Custom Filter on Search LDAP, an LDAP filter you write yourself, where the characters *, (, ) and \ are escaped with a backslash.
Two limits to plan for. There is no LDAP trigger node, so a workflow starts with a Schedule Trigger at a fixed interval, with an n8n Webhook (a URL another service calls) or with the trigger of another tool. And a broad search needs Return All switched on, otherwise Limit caps the number of entries returned, while Page Size sets how many come back at a time. The node has an official docs page, its common issues page returns a 404, so test against a narrow Base DN before pointing the workflow at the whole tree. For the wider picture, the n8n review covers the platform itself and n8n training covers building workflows like this one.
How do you connect n8n to an LDAP server?
- 01
Point n8n at the server
You need a directory server reachable over LDAP before anything else; Jumpcloud, Azure ADDS and Okta all expose one. In n8n, open the Credentials menu and create an LDAP credential. LDAP Server Address takes the IP address or the domain of that server, and LDAP Server Port takes the number of the port used to connect to it. Your directory provider's documentation gives both values.
- 02
Set the account n8n logs in as
Binding DN is the Binding Distinguished Name, the user account the credential logs in as. It is a full path in the directory, not a login name: on Active Directory it looks like
cn=administrator, cn=Users, dc=n8n, dc=io. Binding Password is that account's password. Your LDAP provider's documentation explains how to identify the right DN and the password that goes with it. - 03
Choose the connection security
Connection Security offers three values:
None,TLSandSTARTTLS. Pick the one your server is set up for. Connection Timeout is optional and takes a numeric value in seconds. Save, and the credential is done: a credential is created once in n8n and reused across every workflow, with the node offering it in a dropdown instead of asking for the password again.
What can the LDAP node do?
The Ldap node exposes 6 operations. For each one: the node as you configure it in n8n, the required fields, and our field notes.
Operations index
Compare an attribute
compareWhat you see in n8n
Notes & use cases
Compare checks one attribute of one entry against a value and returns the outcome of that check, which is enough to branch a workflow without reading the whole entry back.
Key parameters
- DN: the distinguished name of the entry to compare, its full address in the directory tree, in the shape n8n shows as a placeholder,
ou=users,dc=n8n,dc=io, often{{ $json.field }}from the node before. - Attribute ID: the ID of the attribute to compare, picked from the list n8n displays.
- Value: the value to compare against.
Create a new entry
createWhat you see in n8n
Notes & use cases
This one writes a new object into the directory at the distinguished name you hand it, so the account exists without anyone opening a directory console.
Key parameters
- DN: the distinguished name of the entry to create. It sets where the entry sits and what it is called in one string, so the workflow usually assembles it from the incoming item.
- Attributes: the attributes to add to the entry, added one by one behind the Add Attributes button.
Delete an entry
deleteWhat you see in n8n
Notes & use cases
Delete removes the object sitting at the distinguished name you pass, and the workflow carries on with the next step. There is a single field to fill, which makes it the easiest operation of the node to get wrong: whatever DN reaches it, goes.
Key parameters
- DN: the distinguished name of the entry to delete, usually
{{ $json.field }}carried over from a Search LDAP step rather than typed by hand.
Rename the DN of an existing entry
renameWhat you see in n8n
Notes & use cases
Rename swaps the distinguished name of an entry that already exists for another one you provide, and the entry keeps living under that new name.
Key parameters
- DN: the distinguished name of the entry to rename, the one that exists today (
cn=john,ou=users,dc=n8n,dc=ioin the placeholder n8n shows). - New DN: the new distinguished name for that entry (
cn=nathan,ou=users,dc=n8n,dc=io).
Search LDAP
searchWhat you see in n8n
Notes & use cases
Search returns the entries that match under a starting point in the tree. Most workflows open with it, because every other operation here needs a distinguished name to work on.
Key parameters
- Base DN: the distinguished name of the subtree to search in.
- Attribute: the attribute to search for, from the list.
- Search Text: the text to look for, with
*as a wildcard. - Return All: on, every match comes back; off, Limit caps the number of entries returned.
- Scope:
base,oneorsub, how deep below the Base DN a match may sit.
Update attributes
updateWhat you see in n8n
Notes & use cases
Update works on an entry that already exists and changes only the attributes you list, leaving the rest of the entry untouched.
Key parameters
- DN: the distinguished name of the entry to update, generally
{{ $json.field }}from the Search LDAP step that found it. - Update Attributes: the entry attributes to update, listed behind the Update Attributes button.
Need help automating Ldap with n8n?
A person reads every message.


