n8n LDAP login with Active Directory

Signing staff in to n8n with Active Directory credentials limits access to people who already exist in the directory, but it depends on your plan, your directory design and a local owner account you must keep working.

On this page

Why teams connect n8n to Active Directory with LDAP

If your organization already manages staff in Active Directory, LDAP login lets people sign in to n8n with the same directory credentials they use everywhere else, so access starts and stops with the directory account. n8n lists SSO and LDAP as included only in its Business and Enterprise plans on its pricing page, so confirm the plan before you plan the work. The feature connects n8n to your directory over LDAP, authenticates users against it, and can sync user records so that disabling an account in the directory is reflected in n8n. This page covers the connection and bind settings, user filters that limit who can log in, attribute mapping, sync behavior and keeping a local owner account for recovery.

LDAP is a good fit when your Active Directory is the system of record for staff, your network team can reach the domain controllers from the n8n host, and you do not need a browser redirect to an identity provider. It fits less well when your directory is only partly synced to the cloud or when your identity team already runs a SAML or OIDC front end for most internal apps, because then a federated login may give you one control point. Microsoft notes that most on-premises apps authenticate against Active Directory with LDAP, Windows-integrated authentication or header-based authentication, and that SaaS apps usually need a federation system such as AD FS, so the choice depends on what your team already operates. Ask your identity team which protocol they want n8n to use before you pick one.

Before you configure anything, decide which directory account n8n will use to search the directory, which groups or organizational units may sign in, and which attributes n8n should read for name and email. Confirm with your directory team whether LDAP over TLS is required, since the bind password and user data cross the network. Also decide who will hold the local owner account, because a directory outage or a misconfigured filter should not lock every administrator out of the instance. The steps that follow depend on those answers, and a mistake in the user filter is the most common way to grant access to the wrong group of people.

How a directory login reaches n8n

A login starts at the n8n sign-in page, where the staff member enters directory credentials. n8n uses a bind account to connect over TLS to the LDAP endpoint on Active Directory domain controllers, searches for the user using the base DN and user filter, and checks the password against the directory. Only a user the filter admits gets an n8n user record. The local owner account follows a separate path that never touches the directory, so confirm it still works before you test directory changes.

Conceptual view of directory login and the separate local owner path.

Which configuration decisions shape the LDAP login

This table lists the decisions a team should settle before turning on LDAP sign-in for n8n with Active Directory. Read each row as a question to answer in writing: what the choice controls, when it fits your directory, and what to confirm in n8n's current LDAP documentation before you change anything in a production instance.

DecisionWhat it controlsWhen the choice fitsWhat to confirm in n8n's LDAP documentation
Directory endpoint and TLSWhich domain controller n8n contacts and whether the connection is encrypted in transitEncrypted connections to a domain controller in the same network zone as the n8n instanceSupported connection protocol options, how n8n validates the directory certificate, and the trust store it reads from
Bind account and its rightsThe identity n8n uses to search the directory before it checks a user's passwordA dedicated, non-privileged service account that can read the user objects n8n needs and nothing moreWhether the bind account needs anonymous or authenticated search, and the minimum read permissions it requires in Active Directory
Base DN for user searchThe branch of the directory tree where n8n looks for usersA specific organizational unit that holds staff who should use n8n, not the whole domainHow the base DN is written, whether subtree search is the default, and how it interacts with the user filter
User filterWhich directory accounts are allowed to log in at allGroup-based or attribute-based filters that match only the staff who need n8n access, such as members of one approved groupThe filter syntax n8n accepts, whether disabled Active Directory accounts are excluded by default, and how to test the filter before enabling it
Attribute mapping for email and display nameWhich directory attributes populate the n8n user's email address and nameDirectories where email and display name are consistently populated and unique across usersThe default attribute names n8n expects, which attributes are required, and what happens when a mapped attribute is empty
Sync and deprovisioning behaviorHow often n8n refreshes user data and what happens to an n8n account after the directory account is disabled or removedTeams that need leavers removed from n8n promptly, not only at the next loginWhether n8n syncs on a schedule or only at login, whether disabled accounts lose access, and whether existing sessions and workflows are affected
Local owner accountA break-glass login that works when the directory, TLS certificate or bind account is unavailableEvery production instance, so administrators can recover if the LDAP configuration locks out all directory usersHow the owner account coexists with LDAP login, whether password login stays enabled, and how to keep its credentials offline and tested
Staged rollout and test usersWhether LDAP is enabled for everyone at once or first for a small test groupInstances already used by production teams, where a bad filter could block working usersWhether test connections can be run before the setting takes effect, and how to revert to the previous login method

How user filters, attributes and sync decide who gets in

The user filter is the main control over who can sign in to n8n with directory credentials. It decides which objects in the directory are eligible to authenticate, so every account it matches with a valid password can reach the login page and, if its attributes pass the checks, receive an n8n account. A filter that matches all user objects in a large domain can admit service accounts, contractor accounts and staff who never needed access. Scope the filter to a group, organizational unit or attribute that your access team owns, then test it with sample accounts in each category: one that should pass, one that should fail and one disabled account. Confirm the filter syntax your n8n version expects in its LDAP documentation before you copy any example.

Attribute mapping decides which directory fields n8n stores against each user, such as the login identifier, email address and display name. Choose the unique identifier deliberately, because it is what links a later sign-in to an existing n8n user. Confirm in the documentation for your installed version which attribute n8n uses for matching, and whether a changed value, such as a renamed user or a new email alias, updates the existing account or creates a second one. Active Directory can hold many attributes, and how fully they are populated depends on how staff were provisioned, so check a representative sample of accounts before rollout since many profiles are incomplete.

Sync behavior determines what happens to existing n8n users when their directory account is disabled, moved to another organizational unit or deleted. The answer depends on the installed n8n version and its LDAP settings, so do not assume it from the directory side. Build a non-production instance that mirrors your directory configuration, then disable, move and remove test accounts and record whether n8n blocks the next sign-in, keeps existing sessions alive, updates attributes or leaves workflows and credentials attached to the account. Plan the local owner account separately so that a directory outage or a bad filter change cannot lock out every administrator. Active Directory groups and Microsoft Entra Connect are separate choices that this page does not cover in depth.

Setup sequence for LDAP login with Active Directory

This sequence takes n8n from a plan that checks licensing and version through a staged LDAP rollout, ending with staff signing in with directory credentials while a local owner account stays available as a fallback.

  1. Confirm plan and n8n version

    Confirm with your n8n account owner that your plan includes LDAP. The n8n pricing page places SSO and LDAP in the Business and Enterprise plans, so a Community edition instance cannot use this path. Record the exact n8n version you run, because LDAP settings and screens can change between releases, and read the release notes for that version before you touch production. Check: the plan entitlement is written down with the version number, and a test instance on the same version is available for the rest of the sequence.

  2. Create a dedicated read-only bind account

    Ask your directory team to create a service account used only by n8n to search the directory. Give it read access to the user objects and attributes n8n needs, and no membership in administrative groups. Use a long, unique password stored in your secrets manager, and set it so it does not expire without a planned rotation. Check: the account authenticates from a directory query tool and cannot modify a test user object, which confirms the read-only scope.

  3. Confirm the domain controller endpoint and TLS trust

    Identify the domain controller or load balanced endpoint n8n will reach, and confirm the LDAP port your team allows through the firewall. Require encrypted transport, either LDAPS or StartTLS, and confirm that the certificate chain is trusted by the n8n host, including any internal certificate authority used by your organization. Test the connection from the same network path n8n will use, not from a workstation. Check: a secure connection opens from the n8n host and the certificate validates without overrides.

  4. Build and test the user filter

    Write the user search filter and base distinguished name in a directory query tool first, then run it against your test population. Include a clearly defined group or attribute that marks people eligible for n8n, and exclude disabled accounts and service accounts. Run the filter against at least one account inside the intended group and one outside it. Check: the filter returns only the intended users and returns no disabled accounts before you enter it in n8n. Note the exact string so you can compare it later.

  5. Configure attribute mapping

    Enter the connection settings, bind account, base distinguished name and the tested user filter in n8n's LDAP settings. Map the login identifier, email address and display name to the attributes your directory uses, and confirm which attribute n8n uses to match an existing local account. Save the configuration but do not enable it for all users yet. Check: a test sync shows the expected name and email for a sample user, and the matching attribute does not create duplicate accounts for people who already have local logins.

  6. Test with a pilot group

    Enable LDAP login for a small pilot group of staff whose accounts you know well, including at least one administrator. Ask each pilot user to sign in with directory credentials and confirm they reach the workflows and roles they expect. Then try a sign-in with an account that is outside the filter and a disabled account, and record how n8n responds. Check: pilot users sign in successfully, the account outside the filter is rejected, and the disabled account is rejected. Keep the test results with your change record.

  7. Verify the local owner account

    Before you widen access, confirm that the local owner account still signs in with its own password. Restart the n8n instance, then sign in with the owner account and confirm it works without relying on the directory. Store the owner credentials in your password vault with restricted access, and document who can use them. Check: the owner login succeeds after a restart and a directory outage does not lock every administrator out of the instance.

  8. Enable LDAP login for staff

    After the pilot and the owner check pass, enable LDAP login for the full population defined by your filter. Announce the change to users, including what they should do if their directory password changes, and monitor sign-in failures and sync results for the first working period your team agrees on. Record the final configuration and the tested filter in your change system. Check: sign-ins from staff succeed, failures are explained by the filter or account state, and the owner login still works.

Active Directory, OpenLDAP and FreeIPA as the login source

Active Directory is the directory most on-premises applications authenticate against, usually through LDAP, Windows-integrated authentication (NTLM and Kerberos) or header-based authentication. It runs as a Windows Server role (Active Directory Domain Services) and replicates directory data to every domain controller in a domain. If your staff already sign in with directory credentials, this is probably the source you will point n8n at.

  • Server role: Domain controllers run Windows Server, and the directory replicates across them, so the design work sits with your Windows administrators.
  • Core licensing: Microsoft's Windows Server 2025 pricing page describes licensing per core, with a minimum of 16 cores per server and 8 per processor.
  • Client Access Licenses: Standard and Datacenter editions both need a Windows Server Client Access License for every user or device that accesses the server.
  • Suggested pricing: The same page lists a suggested price of 1,176 US dollars for Standard and 6,771 US dollars for Datacenter for 16 core licenses, and notes that prices vary by region.
  • Confirm n8n support: Confirm with n8n which LDAP settings and Active Directory behavior its LDAP login supports in your version before you design around it.

Ask your Microsoft licensing partner or reseller for a quote that covers cores, Client Access Licenses and any existing agreements.

Security controls to set before staff sign in

LDAP login moves the trust decision for every n8n user into your directory and the connection between the two. The cards below cover the controls to settle in the directory, in n8n and on the hosts that hold n8n's data, before staff sign in with Active Directory credentials.

TLS and certificate trust

Every bind and search carries directory credentials, so the connection to the domain controller must be encrypted and verified. Confirm that n8n trusts the certificate chain issued by your internal certificate authority, that the certificate name matches the host name you configure, and that the chain is installed on every n8n instance that will authenticate users. Test the connection from the actual n8n host, since a workstation test can pass where the server fails. Avoid settings that skip certificate verification, even temporarily.

Bind account scope and rotation

The bind account is the identity n8n uses to search the directory, so give it read access to the user objects and attributes it needs and nothing more. Do not place it in privileged groups or reuse a person's account. Use a dedicated service account with a long, generated password stored in your secrets process, and agree a rotation schedule with the directory team so a password change does not silently stop logins. Confirm which directory group policies apply to the account, including any that force password changes.

Limiting sign-in with the user filter

Without a filter, every enabled directory account in the search base may be able to sign in to n8n. Build the user filter around a dedicated security group, such as one for n8n users, and test it with a few accounts that should be allowed and several that should not, including disabled accounts and contractors. Keep the search base as narrow as your directory layout allows. Revisit the filter whenever group membership rules change, because the filter decides access without any n8n-side approval step.

Protecting the encryption key

n8n encrypts the credentials it stores in its database with the instance encryption key, so losing or exposing that key exposes every saved credential. Back it up in your secrets store, restrict who can read the configuration that holds it, and do not change it casually. In queue mode, the main instance's encryption key must be shared with all worker and webhook processor nodes so they can read credentials, so any worker you add is another place the key lives. Plan key handling before the directory connection goes live.

Separating admin and sign-in rights

Being able to sign in to n8n should not imply instance administration. Decide which directory groups grant sign-in only, and which, if any, map to instance owner or administrator roles, and keep that mapping short and reviewed. Keep at least one local owner account for recovery, stored under your break-glass process, so an directory outage or misconfigured filter does not lock every administrator out. Confirm the role behavior of your n8n edition and version before you rely on it, since role provisioning options differ by plan.

Audit trail for sign-in events

Before go-live, confirm which sign-in events n8n records, such as successful logins, failed binds and account creation, and where those records go. Also confirm what your directory logs on the domain controllers, since failed bind attempts and account lockouts may appear there rather than in n8n. Agree who reviews these records and how often. LDAP login does not replace your multi-factor authentication decision: decide separately whether directory passwords alone are acceptable for n8n administrators and workflow editors.

Keeping a local owner account and a way back in

A local owner account has to keep working when the directory, its certificate or the bind account fails, because LDAP login depends on three things that can break independently of n8n: the Active Directory domain controller, the TLS chain used to reach it, and the service account n8n binds with. A bad change to the base DN, the user filter or the bind password can shut out every administrator at once, and the people who could repair the setting are the same people who now cannot sign in. Before you enable LDAP, confirm in n8n's current documentation how the owner account behaves once LDAP is turned on: whether local password login still works for it, whether directory sync can change or disable it, and what happens to its role. Do not assume the answer from older guidance or from another product.

Store the owner credentials under your break-glass process, in the organization's sealed credential vault rather than a shared document or an engineer's workstation. Assign two named custodians who can release the password, log each retrieval, and limit the account to recovery and configuration testing. Keep the group of people who know the owner login small and named, record them in the runbook, and review that list whenever a holder changes role or leaves. A large group of holders weakens the control, and an unknown group means nobody can recover the instance during an incident.

Test the owner login after every change, first in a staging instance and then in production during a maintenance window. Each test should sign in with the owner account, open the admin settings, confirm that the LDAP connection test and a directory user login still behave as expected, and then sign out. Before each change, export the current configuration and write down the rollback steps, including how to turn LDAP login off, how to return to local sign in and whether the change needs a restart. Change one setting at a time so a failure points to a single cause. Also confirm how environment variables interact with settings saved in the interface, because a value set by environment may override the setting you expect to revert.

Limits to confirm in your environment

LDAP login for n8n depends on facts outside n8n: the edition you license, the directory version you run, and how your network and certificates reach it. Confirm each limit below before you write the bind and filter settings, because a mistake in any one of them can lock out staff or leave a directory path open.

Plan and version that include LDAP

LDAP sign-in is listed on n8n's pricing page as part of the Business and Enterprise plans, not the free Community edition. Confirm which plan your organization licenses and which n8n release you run before you plan the LDAP settings, since LDAP options can change between releases. Ask n8n to confirm whether your specific edition and version expose every LDAP setting in this guide. Recheck after each upgrade.

n8n pricing

Directory version and lifecycle

Confirm the Windows Server version that hosts your domain controllers and its support dates. Windows Server 2022 mainstream support ends October 14, 2026 and extended support ends October 15, 2031. Windows Server 2025 mainstream support ends November 14, 2029. A directory approaching end of support is a planning risk for every application that binds to it, including n8n.

2022 mainstream end
Oct 14, 2026
2025 mainstream end
Nov 14, 2029
Windows Server 2022 lifecycle

Domain controller reachability

Confirm which domain controllers the n8n host can reach, on which ports, and whether that path crosses a firewall, a proxy or a segment that changes during failover. Ask your directory team which controllers serve LDAP and whether they are reachable from every n8n main instance and worker. Test from the same network segment and host that n8n uses, not from an administrator workstation.

Nested groups and disabled accounts

Test how the filter treats nested group membership and accounts that are disabled or locked in Active Directory. A filter that matches a direct group membership can miss users who inherit access through a nested group, and a filter that ignores account status can let a disabled employee keep signing in. Run test accounts for each case and record which ones n8n accepts or refuses.

TLS configuration support

Confirm that n8n accepts the TLS configuration your directory requires, including the certificate chain, the authority that issued it and the protocol version. Ask whether your domain controllers present certificates from an internal certificate authority and whether n8n trusts that authority. Do not disable certificate checks to make a connection work, because that exposes bind credentials to interception.

Owner account and upgrade behavior

Keep a local owner account with a strong password and recovery plan that works if the directory is down or the LDAP configuration breaks. Confirm how the owner account is handled when LDAP is enabled and whether a release upgrade changes LDAP settings, mappings or sync behavior. Test sign-in with both the owner account and a directory account on a staging instance before every upgrade.

Questions buyers ask about n8n LDAP with Active Directory

What does it cost to turn on LDAP login for n8n?

LDAP login is included only in n8n's Business and Enterprise plans, according to n8n's pricing page. The Business plan is listed at 667 euros per month billed annually and is currently self-hosted only, so that subscription is the recurring license cost for this feature. Enterprise uses custom pricing, so request a quote if you need it. Directory work is a separate cost. If you already run Active Directory, most of the spend is the time to configure the bind, filters and attribute mapping, plus testing and rollback planning. If you must add directory servers, Microsoft's Windows Server 2025 pricing lists a suggested price for Standard edition per 16 core licenses, prices vary by region, and client access licenses apply to every user or device. Ask any provider for a quote that lists each component and whether it is one-time or recurring.

How long does n8n LDAP setup with Active Directory take?

The duration depends on how well organized the directory is and how many access rules you need, so no fixed timeline applies. The main drivers are confirming where staff accounts sit in the directory, issuing a bind account and certificate, choosing the user filter that limits who can log in, testing with a small pilot group, and agreeing how the local owner account is handled. Teams with experienced directory administrators and a non-production n8n instance usually finish faster than teams that must first clean up group structures or build directory services. Ask for a written schedule with named milestones and a test group, and confirm your n8n edition and version before planning, because the LDAP settings available depend on both.

What does LDAP login with Active Directory need from our team?

The work needs four things from your side:

  • Directory admin access to review the domain structure, the OUs that hold staff accounts and the groups used for access.
  • A bind account with only the read permissions the connection needs, with its password stored in your secrets process.
  • Certificates that the n8n host trusts for encrypted LDAP connections, which your PKI team should confirm before configuration starts.
  • A test group of staff accounts and a non-production n8n instance for trial logins.

You also need a named approver for the user filter and attribute mapping, plus a change window in which the directory and n8n teams can roll back if logins fail. Agree on these inputs before work starts so the schedule reflects your actual constraints.

Can our own team set up n8n LDAP login without a partner?

Yes, if your team already administers Active Directory and runs n8n, but the change affects sign-in for every staff member, so plan it carefully. The team needs directory administration skills, n8n administration skills, and enough certificate knowledge to configure encrypted connections. The main risks are locking out all users with a wrong bind setting and granting access to a wider group than intended through an overly broad filter. An internal team should test in a non-production instance, document each setting and keep the local owner account working throughout. If you prefer outside help, DeployOpen plans and implements self-hosted platforms in your own infrastructure, including hardening and documentation, and most engagements are fixed-scope with the scope and deliverables agreed in writing before work starts.

Should we use LDAP, SAML or OIDC for n8n sign-in?

Choose LDAP when your staff identities live in Active Directory and you want n8n to check credentials against the directory directly. Choose SAML when your identity provider is the control point for sign-in, since n8n's SAML documentation covers setup with Okta Workforce Identity and Azure AD, and SAML is available on the same Business and Enterprise plans as LDAP. Microsoft notes that most on-premises apps authenticate with LDAP and that Active Directory needs a federation system such as AD FS for SaaS applications, so SAML against an Active Directory estate usually adds a federation layer. OIDC is a further option, but confirm which plan includes it in your n8n version before you decide. Base the choice on where your identity lifecycle is managed, not on the protocol alone.

How do we keep a local owner account if directory login fails?

Keep one local owner account with a strong, unique password, store it in a sealed secrets vault, and confirm that it signs in before you enable directory login. Test the procedure on the non-production instance first, because you need to know how your n8n version treats the owner account once LDAP is active and whether the local login path stays open for everyone else. Restrict who can retrieve the password, log each time it is used, and rotate it after any use. Also check whether your edition supports two-factor authentication for local accounts, and document the recovery steps so an on-call engineer can follow them without the directory team. Review the procedure whenever you change the directory or n8n version.

What happens to n8n users when they leave Active Directory?

Removing a leaver from Active Directory does not by itself remove their work or guarantee that every access path closes, so confirm the behavior in your n8n version. Directory login depends on the account being valid when the user signs in, but an existing session, an API key or a credential the person created may still be usable until something ends it. Workflows and credentials owned by the leaver stay in n8n and need to be transferred to another owner. Check for active API keys and rotate any credential the person could reach. Test the offboarding steps with a disabled test account on the non-production instance, and record who is responsible for each step.

How DeployOpen scopes and delivers n8n LDAP login

DeployOpen approaches n8n LDAP login as a scoped build inside your own infrastructure, starting from how your Active Directory is structured and who must be allowed to sign in. Engagements are fixed-scope, with the directory settings, login filters, sync behavior and local owner account agreed in writing before any configuration begins.

How we scope

  • Review which Active Directory groups should reach n8n and which must be excluded before writing any filter.
  • Confirm the n8n edition and plan, since LDAP login is included only in the Business and Enterprise plans.
  • Agree in writing the directory endpoint, bind account, TLS requirements, sync schedule and local owner account handling.

How we build

  • Configure the bind account with least-privilege read access and test the search base and user filter in a non-production instance.
  • Map directory attributes to n8n user fields and verify how new, changed and disabled accounts are handled at login.
  • Test sign-in with allowed, denied and disabled directory accounts, and confirm the local owner account still works during the test.

How we hand over

  • Deliver a written record of the bind settings, filters, attribute mapping and sync behavior as configured in your environment.
  • Provide a runbook for rotating the bind credential, changing filters and recovering access if the directory is unreachable.
  • Walk your identity and platform teams through the login test results and the steps that remain under your ownership.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the initial build is accepted.
  • Retest login behavior after n8n upgrades or directory changes, such as group restructuring or domain controller replacement.
  • Ask your team to confirm directory details, such as the domain controller hostnames and certificate chain, before the scope is signed.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.