Zammad LDAP and Active Directory user sync

How an IT team syncs agents and customers from Active Directory or another LDAP directory into Zammad, with group-to-role mapping, one-way sync and the checks that prove it works.

On this page

Zammad LDAP and Active Directory user sync for agents and customers

Zammad can pull users and groups from an LDAP directory, including Active Directory, so a service desk lead can have helpdesk accounts follow the directory the organization already runs. The exact connector settings, field names and admin menu paths must be confirmed in the Zammad admin documentation for the release you run, and checked against that release instead of copied from older guides. The sync is one-way: the directory is the source, and Zammad imports agents and customers along with their groups. Changes made in Zammad do not flow back to the directory, so account creation, disabling and group membership stay with the directory team. Before the first run, confirm in your own environment which accounts the sync should read, which groups become Zammad groups, and who may change either.

Organization mapping is a separate design task, and the user sync does not settle it. Zammad organizations group customers by company or unit, but a directory attribute that names a department or company does not automatically become one of them. Decide first whether your directory holds a reliable value for organization membership, who owns that value, and what happens to customers who move between units. Group mapping needs the same care, because each imported group can change what agents see and do. Confirm which groups carry access, which only support routing, and how nested groups are handled in your release. Test with a small set of accounts before widening the scope.

What the directory and the Zammad host need before the sync is configured

Six prerequisites decide whether the sync can be configured and tested without surprises. The Zammad host needs a supported stack, a current security release and a staging copy, while the directory side needs a read-only bind account, a reachable and trusted LDAP endpoint and a group design that separates agents from customers.

Supported Zammad stack

Zammad keeps its content in PostgreSQL and uses Redis for realtime websocket communication, so both services must be in place before directory settings are tested. The minimums are PostgreSQL 15 or newer and Redis 7 or newer. Put Nginx or Apache in front of the application as the reverse proxy. Record the installed PostgreSQL and Redis versions, then compare them with the software requirements page before you start.

Software requirements

Current 7.2 security release

Apply the current Zammad 7.2 security release before you configure the directory connection, so the LDAP or Active Directory settings are tested against the code that will run in production. Zammad 7.2 shipped on 23 September 2026, and its security releases 7.2.1 and 7.2.2 followed in October. Check the latest 7.2 patch on the releases page on the day you install, and confirm in the admin documentation that your version supports each LDAP setting you plan to use.

Zammad releases

Read-only bind account

Create a dedicated bind account in the directory with read-only access to the users and groups under the search base. Zammad uses it to run directory searches, so the account needs no write rights and should be a service identity, separate from any administrator's personal login. Ask the directory team to confirm that it can read every user attribute and group membership you plan to map. Keep its password in your secrets vault and set a rotation schedule before the first test run.

Network paths and TLS trust

Open network paths from the Zammad host to each domain controller or LDAP server it will query, on the ports your directory uses for LDAP or LDAPS. Use the hostnames that appear on the server certificates, since a connection by IP address can fail hostname validation. Install the internal certificate authority chain on the Zammad host and test the TLS handshake from that host itself. Ask whether a second directory server can be configured as a fallback, so one outage does not stop the sync.

Agent and customer group design

Decide which directory groups map to agents and which identify customers before you write any mapping. Keep agent groups apart from broad groups such as all-staff lists, since membership in an agent group would grant agent rights in Zammad. Record each group's distinguished name, its intended Zammad role and the owner who approves membership changes. Test with one account from each side so a customer cannot reach an agent role by accident.

Staging Zammad instance

Run the first sync tests against a staging Zammad instance with its own database, cache and a copy of the directory settings, never against the production helpdesk. Staging lets you check group mapping, login behavior and what a sync changes before agents see it. Use test accounts in a non-production organizational unit or a copy of the live structure, and keep the staging host on the same Zammad version as production. Record each test run so the production change has a reviewed plan behind it.

How one-way sync and missing organization mapping shape the design

The directory is the source of truth for every field the sync maps, so an edit made in Zammad to a synced field can be overwritten on the next run. When the sync reads a value from the directory, that value becomes the one Zammad keeps, and a local correction made in between does not survive. Typical mapped fields include login, firstname, lastname and email, but the actual list comes from your attribute mapping, so read it field by field. Before the first run, the team should decide which fields stay local, such as internal notes or preferences that no directory holds, and which fields the directory owns. Mark that decision in the sync design document and tell agents and administrators which fields they may change. A field left unassigned ends up owned by whoever edits it last.

This sync carries people, so the organization each customer belongs to needs its own source or a manual process, planned before the first run. Without one, customers may arrive with no organization, or with one set by hand that a later run leaves alone or changes, depending on your mapping. Confirm that behavior in staging. Overlapping sources need a rule too. If two directories, or a directory and another sync such as an address book, both hold the same person, Zammad still has to decide which record it updates. Pick one matching key, such as email address or login, and test a person whose name differs between sources. Duplicate users split ticket ownership and muddle requester history, so settle these cases before the first run.

Decide the owner of each attribute before the first run, and record the decision next to the mapping so the people who maintain it later can see it. For each field, name the source that wins, who may change it, and what should happen when a person leaves, including whether the sync deactivates the account and whether the directory alone controls that state. Then confirm precedence in staging. Change a synced field in the test directory, change the same field in Zammad, run the sync, and check which value remains. Repeat the test for an organization field and for a person present in two sources. Run the same checks after any mapping change, because precedence results do not carry over automatically.

Configure the directory sync in six steps with a check after each

This sequence takes the directory sync from a written inventory to a first run in staging, with each step closed by a check you can repeat. The order matters: the directory query is proven with a command-line client before Zammad holds any configuration, so faults in the directory or network surface before they reach the helpdesk. The result is a staging instance whose agents and customers match what the directory owners expect.

  1. Inventory directories and their owners

    Start by listing every directory that will feed Zammad, such as an Active Directory forest or a separate LDAP server, and name the owner of each. For each one, record which population it holds (agents, customers or both), which groups define agent access, and who approves changes to those groups. Ask each owner to confirm the list in writing, because an unowned directory tends to produce accounts nobody can explain later. Done when every population has a named source directory and each owner has confirmed the list in writing.

  2. Create the bind account and record search bases

    Ask the directory team for a read-only service account that Zammad uses to bind and search, and confirm in writing that it cannot modify entries. Record its distinguished name, the search base for agents and the search base for customers, using the tree layout from your inventory. Store the password in your approved secrets process and keep it out of tickets, chat and shared documents. Done when the account completes a bind from the Zammad host and both recorded bases match the containers the owners named.

  3. Query the directory from the Zammad host

    Before touching Zammad, run ldapsearch from the Zammad host with the bind account against the agent base, then repeat the query against the customer base. Use the host name the certificate covers and the same encryption you plan to use, so the test follows the actual network path. Compare each returned count with the figure the directory owner gave you in step one. Done when both counts match and no entries appear from containers outside the intended scope. If a count is off, fix the base, the filter or the network path now, since the same query drives the sync.

  4. Configure LDAPS or StartTLS with certificate trust

    In Zammad's LDAP settings, enter the directory host name, choose LDAPS or StartTLS, and load the certificate authority that signed the directory certificate. Use the host name that appears on that certificate so validation can succeed. Keep certificate verification on. If the connection fails, fix the trust chain and leave verification on. Done when the connection test passes with verification enabled, and a test pointed at a host name the certificate does not cover fails, which confirms that verification is running.

  5. Define agent and customer filters and map roles

    Write one filter for agents and a separate filter for customers, so no account can match both by accident. Map the directory groups that carry agent access to the Zammad roles they should receive, and confirm with the owner which attribute signals a disabled account. Have the owner review the group list, because group membership decides who gets agent rights. Done when a test agent in the mapped group receives the agent role, a test customer receives the customer role, and no test account appears in both populations.

  6. Run the first sync in staging

    Run the first sync against a staging Zammad that holds no production tickets, then read the log for errors and compare the created and updated user counts with the ldapsearch results from step three. Disable a test account in the directory, run the sync again and confirm it is deactivated in Zammad. Done when agent and customer counts match the directory, the test agent holds the agent role, and the disabled test account is deactivated. Repeat the same checks with the production bind account before any production run.

Which directory attributes and groups map to Zammad users and roles

This table lists each directory attribute or group that feeds a Zammad user, the Zammad field or role it fills, the direction of the sync and who owns the value. Active Directory names such as sAMAccountName, mail and memberOf are examples only, so confirm them in your own schema. Check each Zammad field name against your release before configuring the sync, since a wrong mapping can leave users without roles. Read the rows top to bottom to see which source sets identity and permissions.

Directory attribute or groupZammad field or roleDirectionOwner
Login name (example: sAMAccountName or userPrincipalName)Login field on the Zammad userDirectory to Zammad, one wayDirectory admin owns the value; Zammad admin owns the mapping
Email address (example: mail)Email field on the Zammad userDirectory to Zammad, one wayDirectory admin owns the value; Zammad admin confirms duplicate handling
First and last name (examples: givenName and sn)Firstname and lastname fields on the Zammad userDirectory to Zammad, one wayDirectory admin; confirm whether local edits are overwritten on sync
Phone (example: telephoneNumber or mobile)Phone field on the Zammad userDirectory to Zammad, one wayDirectory admin; Zammad admin confirms which number agents see
Agent group (a directory group whose members are helpdesk agents)Agent role assigned through the LDAP source role mappingDirectory to Zammad, one wayDirectory admin owns membership; Zammad admin owns the mapped role
Customer group (a directory group for external or end users)Customer role with no agent permissionsDirectory to Zammad, one wayDirectory admin owns membership; Zammad admin confirms the customer role
Permission group (a directory group that sets Zammad group access)Zammad group membership and group permissionsDirectory to Zammad, one wayDirectory admin and Zammad admin agree the mapping before go-live
Account status (example: userAccountControl disabled flag)Active flag on the Zammad userDirectory to Zammad, one wayDirectory admin; Zammad admin tests how removed or disabled users are handled

Security controls for the bind account, transport and sync changes

A directory sync gives Zammad a standing view of your agents and customers, so the bind account, the connection and the change path need the same care as any other service identity. The six controls below cover what the account can read, how traffic is protected, where its password lives, and who can alter the groups that decide Zammad roles. Confirm the setting each control maps to in the Zammad security documentation before you change anything in production.

Read-only, narrowly scoped bind account

Create a dedicated read-only account for the sync whose only job is reading the directory. Set the search base to the organizational units that hold agents and customers, not the whole domain, so a leaked credential exposes less and the sync cannot pull unrelated objects into Zammad. Confirm that the account has no write rights on the directory side, then test the filter against one sample unit before the first full run.

LDAPS or StartTLS with verified certificates

Connect over LDAPS or upgrade the connection with StartTLS, and do not allow plain LDAP for the bind, since the bind password would cross the network in a form others can read. You must verify the server certificate against your internal certificate authority, including the hostname, so a spoofed directory cannot collect the credentials. Check the chain on every domain controller or directory server you list, and confirm in the Zammad documentation which setting controls certificate verification and that it is enabled.

Bind password kept in secret handling

Keep the bind password out of wikis, tickets and shared notes. Enter it only into the directory settings in Zammad, and limit which administrators can open or replace that form, because whoever can change the credential can redirect the sync. Rotate the password on a fixed schedule and after any staff change, and record each rotation in your change log. Confirm in the Zammad security documentation how the value is stored at rest.

Least-privilege bind account membership

Keep the bind account out of administrative groups, including any group that carries delegated write rights over users or groups. Review its memberships when you create it and again at each review cycle. If a directory group gives the account more than reading user attributes within the search base, remove that grant, because a compromised sync account would otherwise become a foothold across the directory.

Reviewing who changes group membership

Members of the directory groups you map to Zammad roles can shape their Zammad roles after the next sync, so those groups are a privilege path into the helpdesk. Limit membership changes to a named set of directory administrators, require approval for changes to mapped groups, and alert on additions to them. Review that list before each change to the mapping, and confirm in the Zammad admin documentation how role assignment follows group membership.

Logging and periodic sync review

Review sync results after each run and again on a fixed schedule. Look for failed bind attempts, bulk creation or deactivation of users, and role changes that do not match an approved directory change ticket. Forward the logs to your central logging platform so the record outlives the Zammad host, and confirm which events Zammad writes and how long they are kept in your environment.

When FreeIPA sits between Active Directory and Zammad

Before you point Zammad at either directory, decide which directory is authoritative for each person. When an organization runs FreeIPA for Linux identity and Active Directory for Windows identity, Zammad can read from one of them or from both, and that choice determines which accounts, groups and role mappings the sync sees. FreeIPA keeps its users, groups, hosts and policies in 389 Directory Server, a multi-master LDAPv3 directory, so it exposes an LDAP interface that Zammad's directory settings can target. FreeIPA can also set up a cross-forest trust with Active Directory through Samba components, but the IPA domain must use a DNS domain that does not overlap with any domain in the AD forest. Check that naming before you plan the trust, and confirm in Zammad's directory source settings that the FreeIPA endpoint and attribute names work as expected. Read the FreeIPA trust documentation before you finalize the design.

Migration is the other common path. The ipa migrate-ds command can move users and groups from another LDAP server into FreeIPA, and it excludes the Kerberos attributes that FreeIPA regenerates itself. Sudo and HBAC rules do not come across this way, so sudo and HBAC rules need manual migration through LDIF. For Zammad, this matters because group membership may arrive under new distinguished names or attribute values, so any group-to-role mapping built against the old server has to be tested again against the migrated data. Confirm which accounts and groups moved, which were rebuilt by hand, and which still exist only on the old server. The FreeIPA migration how-to lists the steps and the attributes handled separately.

Then settle ownership for each population of users, such as agents, customers and contractors. A person may exist in Active Directory, in FreeIPA or in both, and a sync from two sources can assign conflicting roles or create duplicate accounts. For each group, write down which directory holds the record that should drive login and role assignment, and whether a removal in that directory should also remove access in Zammad. Once that map is agreed, configure Zammad against the chosen source. Test with a few accounts from each directory, including one person who appears in both, and check the resulting roles and group memberships in Zammad before you run a full sync.

Common sync failures, their causes and fixes

This table lists the sync failures most often seen when Zammad reads agents and customers from LDAP or Active Directory, with the likely cause and a fix for each. Read each row from the symptom down, and confirm the fix against your own directory structure before changing production. Every fix should be verified in a staging Zammad with a copy of the directory settings first, because a bad search base or filter can remove or deactivate production users on the next run.

SymptomLikely causeFix
Failed bind or invalid credentials on syncWrong bind DN or password, or the bind account is locked or expired in the directory.Test the bind DN and password from the Zammad host, unlock the account, then re-run the sync in staging.
TLS handshake or certificate errors on syncThe directory certificate comes from an internal CA that Zammad does not trust, or the host name differs from the certificate name.Install the CA chain on the Zammad host, point the server setting at the name on the certificate, and verify the handshake in staging.
Users missing after a sync runThe search base or filter leaves out a nested group or organizational unit, so those accounts never match.Widen the base to the parent OU and use a nested-group membership filter if your directory supports it, then compare counts in staging.
Duplicate accounts for one personThe same email exists in two directories, so each source creates or matches its own user.Choose one authoritative source per email domain, merge duplicates in staging, then limit the second source's search base.
Disabled directory accounts still active in ZammadThe filter does not exclude disabled accounts, so they keep syncing as active users.Add a filter that excludes disabled accounts, confirm a test leaver is deactivated after a run, and verify in staging.
Wrong roles after a group renameRole mapping keys on the old group name, so renamed groups stop matching and members get default or missing roles.Map roles on a stable identifier such as the object GUID if Zammad can match on it, then test a rename in staging.
Local Zammad edits overwritten after the next runOne-way sync treats the directory as authoritative for mapped attributes, so each run overwrites local changes to those fields.Stop editing directory-mapped attributes in Zammad, store local notes in unmapped fields, and test an edit in staging.

Questions buyers ask before syncing Zammad with Active Directory

What drives the cost of an Active Directory sync for Zammad?

The cost follows the number of directories, the group design, and the testing and security review the sync needs. Self-hosted Zammad has no license fee, according to Zammad's pricing page, so the spend is the implementation work, any support subscription you choose, and the infrastructure you run it on. A single domain with a clear group structure is the simplest case. Costs rise when you have several forests, when group-to-role mapping has many exceptions, when agents and customers sit in different containers, or when the security team wants a documented review of the bind account and TLS settings. Ask for a written quote that lists each directory, each mapping rule, the test cases and retest rounds, the review deliverables, and which items are one-time and which recur, such as a support retainer or re-running the sync after a directory change.

How long does a Zammad LDAP sync setup usually take?

The length is set by the scope agreed in writing before work starts, and the main drivers are visible before any build begins. The number of directories, the number of groups that map to roles, and the number of attributes agents and customers need all add design and test work. Approval time matters too, because your team has to provide test accounts, bind credentials and network access on its own schedule. Testing takes longer when many role combinations need checking, and the security review adds time when the team wants to inspect the service account, the TLS configuration and the read-only scope. Most engagements are fixed-scope, so ask for a timeline with milestones for design, build, test, review and cutover, and ask which steps depend on your directory team's availability.

What does the sync need from our directory and IT teams?

Your directory team needs to provide a read-only bind account with rights to the user and group containers, the base distinguished names for agents and customers, and a list of the groups that map to Zammad roles. Your IT team needs to supply the LDAP hostname, the port, the TLS certificate chain Zammad will trust, and network routes from the Zammad hosts to the domain controllers or LDAP servers. Both teams should confirm which attributes hold the login name, the email address and the account status, because those drive matching and deactivation. Plan for a test directory or a restricted test group so changes can be checked before production users are affected. Ask who approves changes to the bind account and who rotates its password.

Can one IT administrator set up Zammad directory sync alone?

One experienced administrator can configure a basic sync alone when there is a single directory, a simple group structure and a test environment. Zammad's LDAP settings are made in the admin interface, so someone who knows both Zammad and your directory schema can complete the configuration. The risk sits in the decisions around it: which attributes match a user to an existing account, how group changes map to roles, what happens when an account is disabled, and how the service account credentials are stored and rotated. A second reviewer who checks the mapping and the deactivation behavior lowers the chance of granting the wrong role to a whole group. A partner works from a written scope, so the plan, build, test and documentation are agreed before work starts and the handover is defined.

How do multiple directories change the Zammad sync design?

Several directories turn a single import into a design question about identity matching, precedence and ownership. Decide which directory is the source of truth for each population, such as employees in one forest and external contractors in another. Confirm in Zammad's documentation how one person who appears in two sources is handled before you commit to the design. Each directory needs its own bind account, base distinguished names, group mapping and test cycle, which multiplies the effort. If you need trust between a FreeIPA domain and Active Directory, the FreeIPA Trusts page explains the DNS rule that applies, so plan the trust and the Zammad sync together rather than as separate projects.

Does Zammad sync organizations from Active Directory?

Plan on Zammad not mapping directory organizational units or department attributes to Zammad organizations automatically, and confirm that behavior for your Zammad version before the design is final. The consequence is that customer company records need another route, such as the API, a controlled import or manual administration, or the sync only creates the user records. Decide early how customers will be assigned to organizations and who maintains that list, because a directory field that looks like a company name will not carry over on its own. Ask any partner to show, in a test environment, which attributes populate users and which fields stay empty. Put this gap into the written scope so nobody expects organization data to arrive automatically.

What happens to Zammad users who leave the directory?

The answer depends on how the sync is configured, so confirm it in a test before you rely on it. The sync is one-way, from the directory into Zammad, so a disabled or deleted account changes in Zammad only when the configuration acts on that status. Confirm whether the user is deactivated, removed or left unchanged, and whether open tickets stay assigned to that person. Your team should define a reassignment step for open tickets and an owner for the audit trail of those changes. Test with a disabled test account and check the result in the admin interface. Also confirm how often directory state is refreshed, because that interval sets the gap between a person leaving and losing access to Zammad.

How the directory, the bind account and Zammad connect

The diagram starts in the directory network, where a read-only bind account lets the Zammad sync job connect over LDAPS or StartTLS. The arrow from the directory to Zammad is one-way: the job reads users and groups and never writes back. Inside the Zammad host, the job applies the group-to-role mapping and sends the result to a staging check before anything reaches the production user and role store. Agents and customers then sign in against that store. Confirm that the bind account has read access only, and compare the staging result with what production should show before you promote the sync.

Sync flows one way from the directory into Zammad, with staging before production.

How DeployOpen scopes, delivers and supports the Zammad directory sync

DeployOpen treats Zammad and LDAP or Active Directory user sync as a design exercise before it becomes a configuration task. We confirm which directories hold the agents and customers, which groups should map to which Zammad roles, and what stays under manual administration. The work is then built, tested and documented in the infrastructure you control.

How we scope

  • Engagements are fixed-scope: each directory, bind account and user group is listed in writing before work starts.
  • Group-to-role mapping is agreed up front, with each Zammad role and the directory group that grants it named.
  • Scope records that the sync does not map directory entries to Zammad organizations, so that gap is agreed up front.

How we build

  • Configure the directory source for agents and customers, with the bind credential kept out of configuration files.
  • Map directory groups to Zammad roles and test each mapping with a sample account from every group.
  • Where several directories exist, build and test each source separately, including how a user present in two is handled.

How we hand over

  • Document the sync settings, group-to-role table, and the steps to add or retire a directory.
  • Record the one-way behavior and the manual steps for attributes the sync does not carry.
  • Walk the admin team through a test run, log review and how to rerun a failed sync.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers.
  • Changes to directory groups after go-live are scoped as written change requests before work starts.
  • Confirm the Zammad version and directory type in the written scope, since the steps depend on both.

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.