How Kerberos single sign-on with Active Directory works for Zammad
Kerberos single sign-on for Zammad is Windows-integrated authentication through a reverse proxy, not a SAML or OpenID Connect setup. A domain-joined agent's browser presents a Kerberos ticket to the proxy, the proxy accepts that identity and passes the user name to Zammad, and Zammad logs the agent in without a password prompt. The work therefore spans three places at once: the Active Directory service account and service principal name, the reverse proxy that performs the Kerberos check, and the browser settings on each Windows workstation. A problem in any one of them looks like a Zammad login failure, so the team needs to plan all three together.
Zammad is licensed under the GNU Affero General Public License version 3, which governs how you may use, modify and redistribute the software. The licence does not restrict an internal deployment, but it does matter if you change the code or offer a modified Zammad to outside users. For this integration, the relevant point is that Zammad documents Nginx or Apache as its supported reverse proxies, so the Kerberos check is built around one of those two servers. Confirm the current proxy requirements in the Zammad software requirements page before you choose the proxy, because the Kerberos module and its packaging differ between the two.
Before any configuration, decide which proxy your team will operate for the life of the system, who owns the Active Directory service account, and which Zammad version you will run. Those three decisions shape the keytab handling, the upgrade plan and the support path. Ask your Active Directory administrators to confirm the domain functional level and the Kerberos encryption types they allow, because a proxy that negotiates an algorithm the domain has disabled will fail in a way that is hard to diagnose from the Zammad logs alone.
What you need before configuring Kerberos login
Kerberos login for Zammad depends on five things lining up: a supported Zammad and database stack, a working Active Directory domain, a Windows Server release that will still be supported for the life of the project, clean DNS and TLS for the Zammad hostname, and a Linux host that runs the reverse proxy. Confirm each one before creating any service accounts or keytabs, because most failed SSO attempts trace back to one of these foundations.
Supported Zammad and application stack
Confirm the Zammad release you will run and check its software requirements first. Zammad stores its content in PostgreSQL 15 or newer and requires Redis 7 or newer for realtime websocket communication. Check the current Zammad releases page for the version you plan to deploy, and plan the upgrade path before you add Kerberos, since the SSO configuration has to survive later upgrades.
Software requirementsActive Directory domain and client fleet
Kerberos login needs an Active Directory domain with at least one reachable domain controller and Windows clients that are domain-joined. Confirm that the users who will sign in exist in the domain, that their workstations can reach the domain controller, and that browsers on those workstations will be able to request Kerberos tickets. Users on unjoined devices or outside the domain will fall back to a normal login form, so decide whether that fallback is acceptable.
Windows Server release and lifecycle
Choose the domain controller release with its support window in mind. Windows Server 2022 mainstream support ended on October 14, 2026, and extended support ends on October 15, 2031. Windows Server 2025 mainstream support ends on November 14, 2029, and extended support ends on November 15, 2034. Windows Server licensing is a separate cost line from Zammad, with per-core and client access license charges, so check the Microsoft pricing page for current figures before budgeting.
Windows Server 2025 lifecycleDNS names and TLS certificate
Kerberos is sensitive to hostnames. Decide the public Zammad FQDN that browsers will use, create the DNS record, and confirm that it resolves inside your network. Obtain a TLS certificate for that exact name from your internal or public CA. Browsers will only send Kerberos tickets to hosts they trust for intranet authentication, so an inconsistent name or certificate error will break the one-click login before Zammad is even reached.
Linux host for Apache
Plan a dedicated Linux host or VM where Apache runs as the reverse proxy in front of Zammad. Kerberos negotiation happens at the proxy, so this host must hold the keytab and join the same Kerberos realm as the domain. Confirm that the host can reach the domain controllers on the required Kerberos and LDAP ports, that its clock is synchronized with the domain, and that your team can maintain Apache, since the Zammad guidance for Kerberos replaces Nginx on this host.
How a domain-joined browser login reaches Zammad
The login starts in the browser on a domain-joined workstation, which asks the domain controller for a Kerberos service ticket for the Zammad service principal name. The browser sends that ticket to the Apache reverse proxy, which uses the keytab to decrypt and validate it, then passes the authenticated user identity to Zammad as a trusted header. Check each hand-off: the SPN must match the host name users type, and the keytab must belong to the same account the SPN is registered on.
Kerberos ticket flow from a domain-joined browser through Apache to Zammad, with trust boundaries marked.
Configuring the AD service account, SPN and keytab
This sequence creates the directory identity, service principal and keytab that let an Apache proxy accept Kerberos tickets for Zammad, then routes Zammad through that proxy and trusts it only from its own addresses. Each step ends with a check so the team can confirm the identity chain works before any browser is changed.
Create a dedicated proxy service account
A domain administrator creates a standard user account in Active Directory whose only job is to run the Kerberos proxy. Store its generated password in the team's secrets manager, record who owns rotation and how it is done, and confirm the password policy will not expire or lock the account in a way that breaks the keytab. Confirm with your directory team whether a managed service account or a standard user fits your domain policy, and which encryption types the domain accepts. Check: the account exists in the intended organizational unit, authenticates with its password, and a rotation procedure has been written and walked through in a non-production copy.
Register the SPN and check for duplicates
Register an HTTP service principal name for the exact hostname users type into their browsers, and assign it to the service account created in the previous step. If that hostname is a DNS alias, it needs its own registration. Then query the domain for that name and confirm exactly one account owns it. Duplicate SPNs cause ticket requests to fail in ways that are hard to diagnose, so search for the same name on any other account or computer object. Use the Microsoft directory tooling for this, and confirm the exact syntax against current Microsoft documentation. Check: the query returns a single owner, and the hostname resolves to the proxy host that will serve Zammad.
Generate and verify the keytab on the proxy
On the Linux proxy host, create a keytab file for the service principal using the Kerberos utilities your distribution provides, with the same encryption types the domain uses. Set ownership so only the Apache service user and root can read it, and keep it outside any web-served directory. Then list the keytab and compare the principal name and key version number with the values the directory reports for the account. Confirm the tool options and file location with your Kerberos documentation before you run them. Check: the key version matches the directory, and obtaining a test ticket with the keytab succeeds. Delete the test ticket afterward.
Replace the Nginx site with Apache
Install Apache and the Kerberos authentication module for it, then enable the proxy and rewrite modules that Zammad's reverse proxy setup needs. Create a virtual host for the Zammad hostname that uses Negotiate authentication with the keytab and forwards traffic to the Zammad application. Include the websocket upgrade path, since Zammad's realtime features depend on it. Make the switch in one change window: disable the Nginx site so only one proxy listens on the public ports, then enable the Apache site. Confirm module names and directive syntax against the Apache and Zammad reverse proxy documentation. Check: the configuration test passes, Zammad loads through Apache, and websocket updates still arrive in an open session.
Limit trusted SSO proxy addresses
In Zammad's security settings, configure the list of trusted SSO proxy addresses to contain only the addresses of the Apache proxy. Do not add subnets or user networks. This list decides which sources Zammad will accept an authenticated identity from, so it is the control that matters most in this design. Confirm the setting's exact name and format in the current Zammad admin documentation before you change it. Check: a request carrying the identity header from an address outside the list is refused, and a request through the proxy is accepted. Record both results in the change ticket.
Test one authenticated request before browser changes
From a domain-joined test machine, send one request to the Zammad hostname with a Kerberos-capable client such as curl using Negotiate authentication and a valid ticket for a known test user. Confirm the response is the expected Zammad session for that user, then check the Zammad log for a single successful SSO login tied to that account. Repeat with a second test user to confirm identities are not mixed. Only after both tests pass should you configure browser intranet settings on user machines. Check: each test user lands in their own account, and a request without a ticket is not logged in.
Why the proxy change from Nginx to Apache matters for this login
Moving Kerberos negotiation from Nginx to Apache is a supported path, because Zammad's software requirements list both Nginx and Apache as reverse proxies. It is still a configuration change to a production login path, so plan the rollback before the first edit. Keep the Nginx configuration in version control, record the exact Zammad and proxy versions you are running, and confirm that you can restore the previous virtual host and TLS setup within your change window. The reference for supported proxies is the Zammad software requirements page, but the exact Apache modules and version you need for SPNEGO negotiation should be confirmed against your distribution's packages and your Zammad release, not assumed.
The change adds a second web server to your estate. Your team will need to patch Apache on its own schedule, add it to monitoring and log collection, and manage its TLS certificates and virtual hosts alongside Nginx if Nginx stays in front of other paths. Every such move is a place where a certificate expiry, a missing ServerName or a changed X-Forwarded-For handling can break login for everyone, not only Kerberos users. Test that existing agent logins, customer portal access, API calls and any webhook or integration endpoints still work after each change, not just the SSO button.
Decide before any configuration work whether Apache handles only the SSO path or the whole Zammad site. A split design, where Apache serves a dedicated Kerberos location and Nginx serves everything else, keeps the blast radius smaller but leaves two proxies in the request path and two sets of hardening to maintain. A full move gives one front door but touches every user's traffic. Record the choice in the design document, because it changes the security review scope, the firewall and trusted proxy rules, and the runbook your on-call team will follow. Ask your team to confirm which option they will support for the life of the system.
Browser and client settings by audience
Microsoft Edge and Google Chrome on Windows read the Windows intranet zone settings, so the Zammad hostname must sit in the local intranet zone and integrated Windows authentication must be allowed for that zone. On a domain-joined machine these settings are normally pushed by Group Policy from the domain, so the Windows administrators own them. Confirm the exact policy names and their behavior for your browser versions in the current Microsoft and browser enterprise documentation before you write them into a GPO.
- Zone membership: Add the Zammad hostname, written exactly as users type it, to the local intranet zone through the Group Policy setting that assigns sites to zones. Avoid broad wildcards unless your security team has approved them.
- Integrated authentication: Allow automatic logon with the current user's credentials for the intranet zone, so the browser presents the Kerberos ticket without a prompt.
- Policy scope: Link the policy to the OU that holds the Windows workstations, and check that no other policy overrides the zone settings.
- Hostname match: The browser must reach Zammad under the same service name registered in the SPN. A short name or an IP address will not negotiate Kerberos.
Verify by signing in with a test account on a domain-joined workstation, running gpresult /r on that machine to confirm the policy applied, and checking that the Zammad login completes without a password prompt.
Firefox does not use the Windows intranet zone model for Negotiate authentication. It keeps its own list of sites allowed to receive Kerberos credentials, and administrators usually set that list through Firefox enterprise policies or a managed profile distributed by the desktop team. Confirm the exact preference or policy key in current Firefox enterprise documentation before you deploy it, because key names change between releases.
- Trusted site list: Add the Zammad base URL to the list of sites allowed for Negotiate authentication, using the same hostname that appears in the SPN.
- Central delivery: Push the setting through a managed policy file or profile so that users do not edit it by hand.
- Locked settings: A user who changes the preference locally can break SSO without any visible error, so lock the setting wherever your deployment tooling allows.
- Non-Windows managed devices: Firefox on Linux or macOS needs a working Kerberos client and a valid ticket cache on that machine. Test those devices separately rather than assuming the Windows result carries over.
Verify by signing in with a test account in Firefox on a domain PC and confirming that the login completes without a prompt. If it fails, check the browser's console for negotiation messages and confirm the list entry matches the hostname exactly.
Personal laptops, phones, tablets and contractor machines cannot obtain a Kerberos ticket for your domain. If the browser attempts Negotiate anyway, the user may see repeated password prompts or a redirect loop. These users should reach a standard login page instead. The fix is split between Zammad, where the standard login must stay available, and the browser policy, where the Zammad hostname should appear only on managed domain devices. Ask your Zammad administrators to confirm how the Kerberos path and the standard login are presented on the login page.
- Standard login always available: Keep the normal username and password login, or another configured login, for every user. A failed negotiation then has a way out.
- Managed-only trust: Carry the trusted-site and intranet zone settings only in policies that apply to domain devices, so unmanaged machines never attempt negotiation.
- Loop symptoms: Repeated prompts or redirects usually mean the browser sends a negotiation request the server cannot satisfy. Check the reverse proxy's SSO path and the login URL that users follow.
- Mobile and guest clients: Mobile browsers and many non-Windows clients will not complete Kerberos. Confirm which client types are in scope before rollout and document the standard login for them.
Verify with a test account on a personal or non-domain device. Confirm that the standard login page loads and that no repeated prompt or redirect appears.
How directory identities map to Zammad users
This table compares the Active Directory attributes that reach Zammad during Kerberos sign-on with the Zammad fields they populate and the decision each one needs. Read it before the first test login, because the matching rules decide whether a user is created or linked to an existing account. Confirm each rule in a test tenant before rollout.
| Active Directory attribute | Zammad field | How it is used | What to decide |
|---|---|---|---|
| Principal name (sAMAccountName or userPrincipalName) | Login (username) | The Kerberos ticket carries one of these; the value must match the Zammad login the SSO proxy passes through | Which form the ticket carries in your realm, and whether it matches existing Zammad logins |
| mail attribute | Email address | Used to match an incoming SSO identity to an existing account and for ticket notifications | Whether every account has a unique, verified mail value before the first login |
| displayName | Firstname and lastname | Populates the agent or customer name shown on tickets and in the user list | Whether to rely on directory names or let agents correct them afterward |
| memberOf (group membership) | Zammad group access | Group membership can determine which Zammad groups an agent can work in, if mapped | Whether group access is assigned by hand or synced from directory groups |
| Group membership for admin or agent duties | Role (Admin, Agent, Customer) | Role assignment can be set manually in Zammad or synced from directory groups | Manual assignment for a small team, or synced roles for larger teams with frequent changes |
| Duplicate mail across directories or forests | Existing account link | Two identities with the same email can link to one Zammad account or create a conflict | Resolve duplicates in the directory before rollout and document the chosen account owner |
Security controls for Kerberos login into Zammad
Kerberos login moves trust into three places: the proxy that asserts the user, the keytab that proves the service, and the accounts that Zammad accepts. Each card below covers one of those places or the recovery and evidence needed to run them safely.
Limit trusted proxy addresses
Zammad only accepts a Kerberos-authenticated user from proxy addresses it has been told to trust. Restrict that list to the addresses of your reverse proxy and nothing else, so a client that reaches Zammad directly cannot present a forged identity header. Check the list after every network change, load balancer replacement or proxy rebuild, because a stale or overly broad entry quietly widens the trust boundary.
Treat the keytab as a credential
The keytab file holds the long-term secret that lets the Zammad host decrypt Kerberos tickets, so anyone who copies it can impersonate the service. Limit read access to the service account that runs the web server, exclude it from general file backups or store those backups under a restricted policy, and record who can retrieve it. Plan rotation together with the service account password so a password reset does not silently break login.
Keep the service account least-privileged
The Active Directory account behind the service principal name needs to exist only to hold that name and password. Grant it no group memberships beyond what Kerberos requires, deny interactive logon, and do not reuse it for other services. Monitor its logon and ticket events in your domain controller logs, since unexpected activity on that account is an early sign of keytab theft.
Decide on unlisted Kerberos accounts
A user can authenticate successfully through Kerberos and still have no matching Zammad account. Decide before go-live whether Zammad should create that account on first login or reject it, and align the no user creation setting with that decision. Automatic creation suits an open internal helpdesk, while rejection suits teams that manage users through an import or directory sync. Confirm the exact behavior in your Zammad version during testing.
Keep a non-Kerberos administrator path
If the keytab is wrong, the proxy is down or the domain controller is unreachable, Kerberos login fails for every user, including administrators. Keep at least one local administrator account with a tested password and multi-factor method that does not depend on Kerberos, and store its recovery steps where on-call staff can reach them without the helpdesk running. Test that path before you enable SSO for all users.
Log SSO events and proxy access
Trace an incident from the user to the ticket by collecting proxy access logs, Zammad authentication events and domain controller records with synchronized clocks. Confirm that each log shows the user, source address and outcome, and that retention meets your own policy. Keep these sources separate from the Zammad hardening baseline, which covers the wider logging and auditing controls for the application itself.
Common Kerberos errors in Zammad and how to fix them
This table pairs common symptoms in a Zammad Kerberos single sign-on rollout with their likely causes and fixes. Work through the rows in order, since browser and proxy problems often surface before any directory or keytab fault. Confirm each fix against the Zammad documentation for your release before changing production settings.
| Symptom | Likely cause | Fix |
|---|---|---|
| Browser prompts for a password instead of signing in silently | The Zammad URL is not in the client's intranet zone or trusted sites list, so Windows does not offer Negotiate authentication | Add the Zammad host to the intranet zone or trusted URI settings through Group Policy, then confirm the browser allows automatic logon for that zone |
| 401 or Kerberos negotiation failure on every login | The HTTP service principal name is registered to the wrong AD account or is duplicated elsewhere in the domain | Search the domain for the duplicate SPN, remove it from the incorrect account, and confirm the SPN maps to the single service account used for the keytab |
| Login worked, then stopped after a password change | The keytab was generated before the service account password changed, so its key version no longer matches the directory | Regenerate the keytab from the current account state, replace the file on the proxy, and restart the web service so it reloads the key |
| Intermittent Kerberos failures across proxy, domain controller and clients | Clock skew between the reverse proxy, domain controllers and client machines exceeds the Kerberos tolerance | Synchronize all three to the same reliable time source, and check time settings on the proxy host before changing any Kerberos configuration |
| Login page appears and the SSO header is ignored | The address of the reverse proxy is not listed as a trusted SSO proxy in Zammad, so the authenticated user header is discarded | Add the proxy address to the trusted proxy setting in Zammad as documented for your release, then retest from a domain-joined client |
| User signs in successfully through AD but has no Zammad account | The account was never created because automatic user creation is off or the directory identity does not match the expected login name | Compare the user principal name and sAMAccountName format with the identifier Zammad receives, then create or link the user according to your chosen account policy |
| Nginx settings still intercept requests after moving to Apache | The old Nginx site or service remains enabled and continues to receive traffic on port 80 or 443 | Disable or remove the Nginx site, confirm which web server is bound to the ports, and retest the Apache virtual host configuration |
Questions buyers ask before hiring help with Zammad Kerberos SSO
What makes Zammad Kerberos SSO cost more or less to implement?
Cost follows the size and shape of your environment rather than a fixed package. The main drivers are the size of the directory, the number of Zammad proxy hosts that need Kerberos, the browser fleet and how it is configured, how much Group Policy access the team has, and whether your Linux team already runs Apache. Windows Server licensing and any server upgrades are separate decisions that can be in or out of scope, so confirm them explicitly. Ask for a quote that lists each driver as a line item, with one-time work (keytab generation, proxy changes, testing) shown separately from any recurring support.
How long does a Zammad Kerberos SSO project take?
No general duration can be given without knowing your environment, so the honest answer is that the schedule depends on the factors above, the change windows you can offer, and how many browser configurations must be tested. Work usually moves in phases: directory preparation, Linux host and proxy changes, browser testing with a pilot group, then rollout. Ask any provider for a written plan that shows each phase, the dependencies on your AD and DNS teams, and the points where your approval is needed before the next phase starts.
What does our team need to provide for the engagement?
Plan to provide administrator access to the relevant Active Directory scope so a service account and SPN can be created, plus a Linux host for Zammad and the proxy. You also need control over DNS records and the TLS certificate used for the Zammad hostname, a test group of domain users who can validate login, and a change window for the cutover. Confirm who approves Active Directory changes, because those are often the slowest step.
Can our internal team set up Kerberos SSO for Zammad alone?
Yes, if the team has working knowledge of Kerberos, keytabs and service principal names, and has run Apache as a reverse proxy in production. Those skills cover most of the build, but the work also touches Active Directory, browser policy and the Zammad configuration, so the team needs access to all three. Before starting, write a rollback plan that restores the previous login path and test it on a non-production instance. If any of those skills are missing, a partner can cover that gap for specific steps.
Is Entra ID or SAML a better fit than Kerberos for remote users?
Kerberos works best for domain-joined Windows devices on your network, where users sign in once and Zammad recognizes them automatically. If many users are remote, use SaaS applications heavily, or sign in from unmanaged devices, a federated approach such as Microsoft Entra ID or SAML is often easier to support. Microsoft's comparison notes that Active Directory needs a federation system such as AD FS for SaaS apps, so check what your identity platform already provides before committing. Many organizations need both, so decide which user groups each method serves.
What breaks most often in a Kerberos SSO rollout for Zammad?
The most common failures involve the service principal name, the keytab, time synchronization between the client and the servers, and browsers that do not send Kerberos credentials to the Zammad host. Errors are often silent, so testing from several browsers on domain-joined machines matters more than testing from one. Ask your provider how they will verify each step, what logs they will check on the proxy and the Zammad host, and how they will document the common errors for your support team.
What should a fixed-scope quote for this work contain?
A fixed-scope quote should name the systems in scope, the Active Directory and Linux changes, the browsers and user groups covered, and the testing you expect before rollout. It should also list deliverables such as configuration documentation, a tested rollback procedure and a short runbook for common errors, plus what is excluded, such as Windows Server upgrades or licensing. Confirm the assumptions about your environment in writing, the acceptance criteria, and how changes to scope are priced if the discovery phase shows something different.
How DeployOpen scopes and delivers Zammad Kerberos SSO
DeployOpen approaches Zammad Kerberos single sign-on as a fixed-scope piece of work inside your own infrastructure. We agree the directory, service account, SPN, keytab handling, reverse proxy change and browser settings in writing, then build and test them against your domain before users depend on the login.
How we scope
- We confirm your Active Directory domain layout, the domain controllers involved and which Zammad hostname users will open.
- We agree who owns the AD service account, the SPN registration and the keytab, and who approves changes to each.
- The written scope lists the Zammad version, the reverse proxy decision and the browser policy rollout for your Windows fleet.
How we build
- We build the Kerberos configuration in a non-production Zammad instance first, using the service account and keytab created for that environment.
- We replace or configure the reverse proxy as agreed in scope and set the trusted SSO proxy addresses to match your network path.
- We test Kerberos login from domain-joined clients, failed-ticket cases and fallback login for accounts that should not use SSO.
How we hand over
- You receive configuration documentation covering the service account, SPN, keytab rotation steps and every setting changed in Zammad.
- We provide the browser intranet zone settings used for testing so your desktop team can deploy them through Group Policy.
- We document the common errors we saw during testing, with the log locations and checks your administrators should run first.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer, which can cover keytab rotation and Zammad version changes.
- Before you request a quote, ask us to confirm how the written scope handles keytab rotation, Zammad upgrades and changes to your domain controllers.

