n8n authentication with Active Directory (LDAP)

Let users sign into n8n with AD credentials via encrypted LDAP simple bind, not federated SSO.

Last updated

On this page (5)

n8n · Active Directory / LDAP · LDAP

Before you start

  • n8n Cloud Enterprise or self-hosted Business or Enterprise.
  • Instance owner, directory network reachability, trusted controller certificate and least-privilege bind account.

Configure sign-in

  1. In Settings > Authentication > LDAP, enable LDAP Login and supply the controller address, Base DN and bind credentials using Binding as Admin for the authenticated lookup.
  2. Select TLS with the LDAPS port (usually 636), or StartTLS where configured. Do not ignore certificate issues.
  3. Set a user filter for the authorized cohort. Map a unique stable directory ID and a login attribute such as sAMAccountName after verifying the directory values; map mail and name attributes, test, and save.

Verify the result

  • Verify an eligible account logs in and a filtered-out account does not.
  • Check duplicate-email behavior and leave Enforce Email Uniqueness enabled where applicable.

Official documentation

Have Pilae connect your identity provider

Pilae can deploy n8n with your identity provider already connected. We agree the edition, account mapping and access tests with your team before rollout.