How Zitadel Active Directory login works for your users
Zitadel can federate login with LDAP and OpenLDAP directories and creates the user in Zitadel on first sign-in, so your directory stays the source of credentials. Your users keep the username and password they already use. When they sign in to an application that trusts Zitadel, Zitadel checks those credentials against the directory using the bind settings you configure, then issues its own session and tokens to the application. The application receives Zitadel's tokens, not the directory password, and the user record Zitadel keeps is the one it created on first sign-in along with the attributes you map into it.
Zitadel's identity provider documentation lists LDAP and OpenLDAP as the supported federation types, and it does not list Active Directory as a separate type. Before you commit, confirm in the identity providers introduction that your Active Directory forest works through the LDAP path, including how it handles multiple domains, global catalog lookups and nested group membership. Also decide which directory is the login source for each Zitadel organization, since each organization can use a different identity provider. If a customer or business unit has its own directory, settle that choice in the design now so the bind settings and attribute mapping are built once for each source.
Plan for what changes after first sign-in. A user who has never signed in has no Zitadel record yet, so any role grant, report or onboarding step that expects a user record needs a first-login step or a pre-provisioning decision. Confirm with Zitadel how later directory changes, such as a renamed account, a removed group or a disabled account, reach the user record, and whether a disabled directory account is refused at its next sign-in. Password length, lockout and expiry rules should remain enforced by the directory when Zitadel binds, so test them with a test account before go-live. Run the disabled-account test too, because it shows what your team must do on offboarding.
What the Zitadel LDAP login build needs before work starts
Six items need a written decision and a named owner before any LDAP setting changes in Zitadel. They cover the release, the deployment method, the database, the network and TLS path, the bind account and the people who approve the change. Settle them before scoping, because each one changes what the build includes and who has to sign off.
Pin the Zitadel release
Choose the exact Zitadel release you will deploy and record its tag in the change request before design starts. LDAP login settings, configuration keys and console screens can change between releases, so a build guide written for one version can fail on another. The latest release noted for this page was published on 15 October 2026. Check the releases page for the current tag, then test the LDAP connection on that version in a staging instance first.
Zitadel releases pageChoose the deployment method
Zitadel documents three self-hosting routes: Linux or macOS binaries, Docker Compose, and Kubernetes with the official Helm chart. The Helm chart route is the one Zitadel recommends for high availability, so it matters most when the login service must stay up during a node failure. Decide this early, because the method sets how LDAP settings, secrets and TLS certificates reach the running service. Confirm with your platform team who builds, runs and patches that environment.
Self-hosting overviewPlan the PostgreSQL database
Self-hosted Zitadel stores its data in PostgreSQL, and the database documentation lists a supported version range. Pick a version inside that range and confirm it against the current documentation before installation, because an unsupported version falls outside what Zitadel tests against. Ask the database team who owns backups, high availability and major version upgrades. Directory-backed login stops working for every user while the database is unavailable, so the database plan belongs in this review.
Database documentationOpen network paths and TLS
Every Zitadel node that handles login needs a network route to the directory server, so map firewall rules from the Zitadel network to each domain controller or OpenLDAP server. Confirm the directory hostname resolves from inside the Zitadel environment. Plan encrypted transport from the start, either LDAPS or StartTLS, and collect the certificate chain that signs the directory certificate. Confirm with the network and PKI teams that the Zitadel runtime itself trusts that chain, and test the connection from a Zitadel node.
Create a read-only bind account
Zitadel uses a bind account to search the directory before it checks a user's password, so it needs a read-only bind account with a known distinguished name. Ask the directory owner for a dedicated service account that can read only the user and group attributes Zitadel needs. Confirm the search base, the subtree that holds the people who will sign in, because a base that is too broad slows lookups and one that is too narrow hides users. Store the bind password in your secrets system and test the search from a Zitadel node.
Identity provider docsName the approvers on both sides
The change touches the identity platform and the directory, so each side needs a named owner who approves it. Name one Zitadel administrator who owns instance settings, one directory administrator who owns the bind account and schema, and one approver who signs off on password policy and deprovisioning decisions. Agree in writing who can change the bind credentials, who receives the rollback plan and who signs off the test results. Illustrative: if the directory team rotates the bind password, the Zitadel owner should hear about it before the next login attempt.
How a login travels from the app through Zitadel to the directory
The flow starts when a user opens an application that delegates sign-in to Zitadel. The application redirects the browser to Zitadel's login page, where the user enters credentials. Zitadel connects to the directory over TLS, binds, and searches for the account, and the directory returns the attributes Zitadel maps. On first login Zitadel creates the user record in its PostgreSQL database, and on later logins it updates that record. Zitadel then returns a token to the application. Confirm each hand-off, especially the bind account and the attribute mappings, against the Zitadel documentation before you rely on this sequence. The diagram is illustrative.
Illustrative login path from the application through Zitadel to the directory.
Zitadel LDAP integration setup, step by step
This sequence takes a Zitadel organization from an unconfigured LDAP connection to a verified login path for enabled users, disabled users and wrong passwords. Each step closes with a check you can run from the Zitadel host or against the directory, so faults surface before any real user signs in. The result is a tested identity provider that creates accounts on first login without a bulk sync.
Confirm the directory endpoint and certificate chain
Your directory team confirms the LDAP host name, the TLS-enabled port and the full certificate chain that the Zitadel host must trust. Collect the root and intermediate certificates in PEM form, and confirm that the host name on the server certificate matches the name you will enter in Zitadel. Run
openssl s_clientagainst the endpoint from the Zitadel host, including the CA file. Done when the TLS handshake completes, the chain verifies, and the certificate subject matches the host name.Create a bind account and test search
Your directory team creates a dedicated service account that can read user objects and the attributes you plan to map, with no write or group administration rights. Record its distinguished name, the search base for users and the user filter that identifies login accounts. From the Zitadel host, run
ldapsearchwith that account over the TLS settings from step one, searching the base for a known test user. Done when the search returns the test account with its expected attributes, and a deliberately wrong bind password is refused.Create the LDAP provider in the owning organization
In the Zitadel console, create the LDAP identity provider inside the organization that owns the users, so the accounts it creates land where your applications expect them. Enter the host, the TLS settings, the bind distinguished name and password, the search base and the user filter from step two. Keep the bind password out of shared tickets and change logs, and confirm each field name against the identity provider documentation for your Zitadel version. Done when the provider saves and appears in the organization's identity provider list.
Map directory attributes to Zitadel user fields
Map the directory attributes that describe the user, such as the login name, given name, family name and email address, to the matching Zitadel user fields. Choose one attribute as the stable identifier and confirm it is unique across the search base, because changing it later complicates account linking. Check the attribute names against your schema, since Active Directory and OpenLDAP often differ. Done when the
ldapsearchoutput for the test account contains every mapped attribute, and each one holds the value you expect.Set just-in-time creation and linking behavior
Enable creation on first login so accounts are created when a directory user signs in, which keeps the setup free of a bulk sync. Decide whether a first login may link to an existing Zitadel user with the same identifier, and enable that only when the identifier is verified as unique and tied to one person, because a wrong link hands one person another person's account. Note that creation on first login does not remove accounts when a directory user is later removed, so record how you will handle deprovisioning. Done when a test user who has never signed in gets an account on first login, and a second login reuses that account without creating a duplicate.
Restrict login to the correct organization
Confirm that the LDAP provider is offered only on the login path of the owning organization. Review the organization's login settings and its list of enabled identity providers, and remove any provider that should not serve another tenant. Check the identity provider documentation for how providers are scoped per organization in your version. Sign in to another organization's login page in a separate browser session and confirm the LDAP option is absent there. Done when the owning organization shows the LDAP option and the other organization does not.
Run the enabled, disabled and wrong password tests
Sign in through the LDAP option with three accounts: an enabled test user, a disabled test user and a valid user entering a wrong password. The enabled user should reach the application with the mapped profile, the disabled user should be refused, and the wrong password should fail without creating an account. If the disabled user is accepted, the user filter or account status check is wrong, and the setup should not move forward. Repeat the disabled test after your directory team disables an account, because an earlier successful login does not prove that a later disable is enforced. Done when all three outcomes match and the results are saved with the setup record.
Which directory attributes map to Zitadel user fields
This table compares common Active Directory and OpenLDAP attributes with the Zitadel user fields they would most likely feed, as an illustrative starting point. Read each row as a decision to confirm before go-live, since the exact default mapping must be confirmed in the Zitadel LDAP provider documentation. The main takeaway is that multi-valued or missing attributes need an explicit decision before users sign in.
| Directory attribute | Zitadel user field | Purpose | What to confirm |
|---|---|---|---|
| sAMAccountName (Active Directory) | Login name | Short logon name that many AD users type at sign-in | Whether it is unique across every directory source you connect |
| userPrincipalName (Active Directory) | Login name or alternate login | Domain-style sign-in name, often matching the email address | Whether it can change, and whether it fits the Zitadel login name format |
| uid (OpenLDAP) | Login name | Unique account identifier in common OpenLDAP schemas | Which attribute your schema uses for login, and whether it is unique |
| Contact address for notifications and sign-in by email | Whether a directory address may be multi-valued, and which value is primary | ||
| givenName | First name | Given name shown in the console and user profile | What happens when the attribute is empty for some accounts |
| sn | Last name | Surname, required by many LDAP object classes | Whether a missing surname blocks sign-in or receives a fallback value |
| cn | Display name | Full name shown to users and in administrative views | Whether cn is set consistently, and whether you want it as the display name |
| objectGUID (AD) or entryUUID (OpenLDAP) | Linked external user ID | Stable identifier that survives renames and moves in the directory | That the provider uses it as the link key, so renames do not orphan accounts |
| memberOf (AD) or group entries (OpenLDAP) | Roles or grants through group mapping | Group membership that drives project roles or grants, if mapped | Group name format, nested group handling, and when membership changes apply at login |
Service account bind or direct user bind: which fits your directory
In a service account bind, Zitadel connects to the directory with a read-only account, searches for the user by a configured attribute such as the login name, and then binds as the user it found using the password the person entered. The lookup happens in one place, so the directory team controls what the service account can read and where searches start. Users whose entries sit in different organizational units can still be found, because the search covers the whole subtree beneath the base.
- Credential rotation: The service account password is a long-lived secret held in Zitadel's configuration. Agree on who rotates it and how the new value reaches every Zitadel instance. A failed service bind blocks logins for all users at once.
- Search scope exposure: A broad base DN or a loose filter lets the account enumerate far more of the tree than login needs. Narrow the base to the user subtree, return only the mapped attributes and confirm the account cannot read password or other sensitive attributes.
- Directory layout changes: Moving a user to another container is handled by the search. Renaming the search attribute or changing the base DN, however, breaks logins until Zitadel's configuration is updated.
- Lockout and policy: The directory validates the password during the user bind, so lockout and password policy stay with the directory. Confirm how failed attempts are counted and how Zitadel handles a search timeout.
Check that the Zitadel LDAP provider supports a search-then-bind configuration in the version you deploy before you build around it.
In a direct user bind, Zitadel builds the user's distinguished name from the login name using a template, such as a fixed prefix and suffix around the name the person typed, and then binds as that DN with the password. There is no search and no service account for lookups, so the directory sees each user authenticate directly. The pattern suits flat, predictable layouts where every login maps to one known container.
- Credential rotation: Without a shared lookup account, there is no standing bind secret to rotate in Zitadel's configuration. Each user's own password is the only credential in the exchange.
- Search scope exposure: Zitadel does not enumerate the tree, so it reads only the entries of users who authenticate. Error messages can still reveal whether an account exists, so confirm how failures are shown to end users.
- Directory layout changes: The template fixes where users are expected to live. Moving entries, splitting containers or changing the attribute that forms the DN breaks logins for the affected users until the template is changed.
- Limits of derivation: A login name that is not part of the DN, such as an email address or a user principal name, cannot be turned into a DN by a simple template. Confirm that each user has one login value that maps cleanly to a DN.
Confirm with the Zitadel LDAP provider documentation that it supports deriving the DN from a template in your version, because a search-based setup may be the only supported option for your directory.
Run both candidate patterns against a copy of your directory or a dedicated test OU before you commit. The result depends on your directory layout, the login attribute your users type and the Zitadel version you deploy, so the tests should cover ordinary logins and the cases that fail in production.
- Layout coverage: Test accounts in every container that holds users, including nested OUs, disabled accounts and users whose login name differs from the entry's naming attribute.
- Login variants: Log in with each username, email or user principal name form your users actually enter, and check case sensitivity and special characters.
- Service account behavior: Rotate the bind password in the test environment, confirm a failed bind produces a clear error and verify that the account can read only the mapped attributes.
- Failure and lockout: Enter wrong passwords to confirm lockout and error messages follow directory policy, and that a directory outage does not expose internal details to users.
- Deprovisioning path: Disable a test account in the directory and observe how Zitadel treats the existing user at the next login, since this governs how quickly access ends.
Record the Zitadel version, the chosen bind pattern and the test results in your change record, and confirm the supported settings against the Zitadel identity providers documentation so the decision can be repeated at upgrade time.
What changes for passwords, lockouts and deprovisioning
Just-in-time provisioning creates or updates the Zitadel user when someone signs in through Active Directory or OpenLDAP, so there is no bulk import to run first. The trade-off is that Zitadel only learns about a change when that person next authenticates. Offboarding therefore stays with the directory and the login event. The team must confirm, for each directory it connects, that disabling or removing an account there blocks the next login, and must decide what happens to the Zitadel user record that already exists for that person. Write those answers into the runbook before go-live.
Password policy, lockout and expiry are decisions made in the directory for directory-backed users, so they belong on the checklist for each connected path. For each path, confirm which controls apply: the complexity and history rules in AD or OpenLDAP, the lockout threshold and reset window, and whether an expired password is refused at Zitadel login or handled only by the directory's own flow. Confirm also whether any Zitadel password setting applies to directory-backed users at all. Local Zitadel users, such as break-glass administrators, sit outside the directory and follow Zitadel's own password and passkey settings. Verify that no local account can sign in while the directory account is locked or disabled, since a local password or passkey fallback would bypass the directory control.
A disabled directory account needs a tested offboarding runbook, because a session or token issued before the change may keep working. Test this in staging with a test account: disable it in the directory, attempt a fresh login, then check whether an open browser session, a refresh token and an access token already issued still reach the applications behind Zitadel. Record how long each one stays valid, then write the matching steps: end active Zitadel sessions, revoke tokens where the platform allows, remove project grants and disable any local user tied to the person. Separately, Zitadel documents SCIM v2 as a standard provisioning interface for user lifecycle changes pushed from an external system. It is a different mechanism from just-in-time login, so the team must decide whether it is needed or whether login events plus the runbook meet the offboarding requirement.
Security settings that matter for directory login
These five settings decide how much directory data Zitadel can reach and how well the bind credential is protected. Review them together before the first production login, because a gap in one often undoes the others. Treat changes to the identity provider configuration as privileged: log every change and limit who can make it to named administrators.
TLS for directory traffic
Zitadel sends the bind password and user credentials to the directory during each login, so that channel must be encrypted and the directory's server identity must be verified. Confirm which transport modes your directory supports, then set the matching option in the LDAP identity provider. Point Zitadel at the internal certificate authority that issued the directory certificate. Never disable certificate validation to make a test pass, because the test then proves nothing about the production path.
Identity provider docsRead-only bind account
Zitadel uses a bind account to search the directory for a user before checking that user's password. Give this account read access to the users and groups that need to sign in, with no write rights, no administrative group membership and no password reset permissions. Record who owns the account and when its password was last changed. Write a rotation plan that stages the new password in Zitadel before the old one expires in the directory, so logins do not fail during the change.
Narrow search base and filter
The search base and user filter decide which objects Zitadel can see. Scope the base to the organizational unit that holds people who should sign in, and keep it well away from the domain root, so service accounts, test objects and disabled groups stay out of reach. Build the filter to match only enabled user objects that carry the attributes you map. Test it with sample accounts from each unit, and confirm which attributes Zitadel reads and stores.
Network paths and firewall rules
Zitadel hosts should reach the directory on its LDAP port only from known source addresses, and the directory should accept connections only from those sources. Map every path, including domain controllers behind a load balancer, replicas used for failover and DNS names that resolve to another site. Allow outbound traffic from the Zitadel network to the directory and block the rest. Confirm whether any proxy or firewall hop changes the certificate name Zitadel sees during the TLS handshake.
Bind password storage and masterkey
The bind password grants directory read access, so it should never appear in a configuration file, a Git repository or a shell history. Confirm how Zitadel stores the bind password once it is saved in the identity provider settings, whether it is encrypted at rest and which deployment secret protects it, using the deployment documentation for your version. Keep the masterkey in your secrets manager, restrict who can read it and write down how it is rotated and backed up.
Common LDAP login failures and how to fix them
This table lists six login failures seen when Zitadel authenticates users against Active Directory or OpenLDAP, with the likely cause and the check that confirms it. Read each row from the symptom down, and run the named check against the directory before you change the LDAP identity provider settings in Zitadel. Run each check against the directory first, since a failing bind, search or certificate can be reproduced there without signing in to Zitadel.
| Symptom | Likely cause | Fix |
|---|---|---|
| Certificate validation errors on the directory connection | Zitadel does not trust the certificate chain, or the hostname does not match the certificate. | Run openssl s_client against the directory port and compare the issuing root with the CA entered in Zitadel. Confirm the hostname matches the certificate. |
| Bind failures from an expired or locked bind account | The bind account password expired, or repeated failed binds locked it in the directory. | Check the account's lock and password expiry attributes in the directory. Test the bind DN and password with ldapsearch before editing the Zitadel provider. |
| Searches return no users | The base DN or user filter does not reach the OU holding the accounts, or the filter excludes them. | Run the same base and filter with ldapsearch as the bind account. Adjust the base DN until the expected accounts appear. |
| Login succeeds without email or name | The email, given name or surname attribute was not mapped, so the user is created with empty profile fields. | Compare the mapping with the attributes on one test account, such as mail, givenName and sn. Then inspect that user's profile in Zitadel. |
| Duplicate users with the same login name | Each organization that enables the directory login can create its own user for the same name. | List users by login name in each organization and check which provider created each. Keep one provider per organization. |
| Disabled account still signed in | Directory state is read at sign-in, so an open Zitadel session may stay valid after the account is disabled. | Test with a disabled test account and check its sessions in Zitadel. Confirm how sessions end for offboarded users before relying on it. |
Zitadel Active Directory login cost and effort, answered
What drives the cost of connecting Zitadel to Active Directory or OpenLDAP?
Four drivers set most of the cost: the number of directories, TLS, the number of Zitadel organizations, and the deprovisioning design with its testing. Each directory, forest or OpenLDAP tree needs its own bind settings, attribute mapping and login tests. TLS adds work when certificate chains, LDAPS or StartTLS settings and firewall rules must be verified from the Zitadel network. Each organization can use a different identity provider, so every extra organization adds configuration and a test pass. Deprovisioning is often the largest unknown. With just-in-time provisioning, Zitadel creates a user at first login, so the team must decide how a disabled directory account loses access and then prove that it does. Ask any quote to price these four items separately, and state which ones are one-time and which need upkeep when directories change.
How long does it take to connect Zitadel to Active Directory?
The timeline follows the same drivers as the cost, and no duration is fixed until the scope is known. A single directory with standard LDAPS, one organization and a simple deprovisioning rule is far simpler than several forests, many organizations and custom TLS trust. Schedule risk usually comes from waiting on people: directory administrators who must create a bind account, network teams who open ports, and reviewers who approve how the bind credentials are stored. Testing also takes time, especially for password policy cases such as locked, expired or forced-reset accounts, because the checks happen in the directory and behave differently from local Zitadel passwords. DeployOpen agrees the timeline in the written scope before work starts, so ask that each dependency and its owner be listed there.
What do we need to provide for an Active Directory login project?
Three inputs unblock the work: directory admin access, a test account, and a named Zitadel administrator.
- Directory admin access: an administrator who can create or approve a read-only bind account, confirm the search base and group objects, and explain how accounts are disabled.
- A test account: a regular directory user who can sign in and be disabled during testing, so both the success path and the failure path can be checked.
- A named Zitadel administrator: a person who owns the instance or organization settings, approves identity provider changes and decides attribute mapping and claims.
Ask the directory team to confirm lockout and password policy settings in writing before the build starts, since those settings decide what users see at login. Without a named owner for each input, decisions stall during testing.
Can our own team connect Zitadel to Active Directory without a partner?
Yes, if the team has both directory administration skills and Zitadel administration skills. Directory skills cover bind accounts, search bases, group membership, LDAPS certificates and how disabled accounts behave. Zitadel skills cover configuring an LDAP identity provider for each organization, attribute mapping, just-in-time user creation and reading login logs. A team with only one of these skill sets usually needs a second person for the missing side, either an internal colleague or an outside partner for a fixed-scope piece. Expect the most time in the deprovisioning test, because both sides must confirm that a disabled directory account actually loses access in Zitadel. Write the test plan before the build so the internal team can see what done means.
What do the Zitadel Cloud Free, Pro and Enterprise plans cost?
The Zitadel pricing page lists a Free plan at US$0 per month with 100 daily active users, a Pro plan at US$100 per month including 25,000 daily active users, and an Enterprise plan with custom pricing for self-hosted or cloud deployments. Enterprise adds custom support agreements and technical account management. Plan fees cover the Zitadel subscription, while your infrastructure, PostgreSQL hosting and the directory integration work are separate costs that appear in your quote. Confirm with Zitadel whether your user count and deployment model fit the plan you pick before you commit, and ask for the Enterprise terms in writing if you need support commitments.
Does FreeIPA work the same way as Active Directory with Zitadel?
Partly. FreeIPA exposes an LDAPv3 directory through 389 Directory Server, so the LDAP settings used for OpenLDAP are the starting point, but the bind account, search base, attribute names and TLS must be tested against your FreeIPA server before you rely on them. The FreeIPA trust with Active Directory is a separate setup. It needs an IPA DNS domain that does not overlap with any domain in the AD forest, and it relies on Samba components, so it should be planned as its own item. A working Active Directory login does not prove the FreeIPA trust works, and the reverse is also true. Scope the FreeIPA directory connection and any AD trust as separate items, each with its own tests and owner.
How DeployOpen scopes and delivers the Zitadel directory login
DeployOpen agrees the scope of Zitadel and Active Directory or LDAP login work in writing before any build starts, and the build runs inside your own infrastructure. The work then moves through build, testing, documentation and handover, and ongoing support is available as a retainer after go-live.
How we scope
- The written scope names each Zitadel organization, project and application that will accept directory logins.
- It lists the directory type, either Active Directory or OpenLDAP, and the directory servers Zitadel must reach.
- Scope also covers who may sign in, the bind account and what happens to existing local users.
How we build
- Configure the LDAP or OpenLDAP identity provider in Zitadel, with bind settings and search base set for your directory.
- Set up just-in-time creation at first sign-in and map directory attributes to Zitadel user fields.
- Enable TLS on the directory connection and check certificate trust before any user signs in.
How we hand over
- Test sign-in with accounts from each agreed group, including a disabled account and an account with a changed password.
- Document the bind settings, attribute mapping, TLS configuration and the deprovisioning steps your team will run.
- Walk your identity and operations staff through password policy and deprovisioning behavior before go-live.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after the agreed handover.
- Retesting directory login after Zitadel upgrades, directory changes or certificate renewals belongs in the support plan.
- Confirm in the Zitadel identity provider documentation how directory-side disablement reaches existing sessions and tokens.

