OpenProject Kerberos single sign-on

OpenProject can accept Windows domain Kerberos sign-ins through an Apache-set user header, which suits internal networks with a clear trust path. This page covers the setup, prerequisites, mapping, security and limits compared with SAML or OIDC.

On this page

How Kerberos single sign-on works in OpenProject

If your staff already sign in to Windows with a domain account, you may want them to reach OpenProject without a second password. OpenProject's Kerberos integration makes that possible, but the mechanism is different from the federation protocols most teams compare it with. It does not exchange tokens with OpenProject. Instead, the Kerberos ticket is accepted by the Apache web server in front of OpenProject, which then passes the authenticated user name to the application in a header. OpenProject's authentication documentation describes this header-based approach, so the trust sits in the web tier and the network path to it, not in the application alone.

The basic trust chain runs like this: a user's workstation obtains a Kerberos ticket from the domain's key distribution center, the browser presents that ticket to Apache, Apache verifies it against the domain's keytab, and Apache sets the header that OpenProject reads to identify the user. Each link must be configured and kept consistent: the service principal, the keytab file, the browser's trust for the site and the header name. Because OpenProject believes whatever the header says, anyone who can reach the application without passing through the authenticating proxy could impersonate a user. Confirm that OpenProject is reachable only through that proxy on your network, and that the header cannot be injected by clients.

This is a network-bound method, not a federation protocol. It suits an internal network where clients are domain-joined, can reach the Kerberos servers, and where the whole path to OpenProject is under your control. It does not give you the signed assertions, token lifetimes, or claims that SAML or OpenID Connect provide, and it is a poor fit for external users, mobile devices or browsers outside the domain. Kerberos is listed among OpenProject's Enterprise single sign-on options, so confirm with OpenProject which plan your edition requires before you design around it. Ask the vendor and your own platform team to confirm the supported Apache modules and OpenProject version for your environment.

What you need before enabling Kerberos sign-in

Kerberos sign-in for OpenProject depends on three layers working together: the Windows domain issuing tickets, a web server that reads the authenticated user, and an OpenProject install that trusts the header it receives. Missing any one of them usually shows up as a failed login or, worse, a bypass, so confirm each item before configuration starts.

Active Directory domain and Kerberos realm

Kerberos sign-in needs a working Active Directory domain that issues tickets for the users who will sign in. Confirm the realm name, the domain controllers the OpenProject host can reach, and that time sources are in sync across the domain and the host, since Kerberos rejects tickets outside its clock tolerance. Ask the directory team which user accounts are in scope and whether any accounts require smart cards or other pre-authentication settings that affect browser sign-in.

AD DS overview

Service principal and keytab for the host

The OpenProject host needs a service principal in the domain, usually an HTTP/ name for the public hostname, and a keytab file that lets Apache decrypt the tickets browsers send. Create the principal and export the keytab on a domain controller or through the approved directory process, then restrict the file to the Apache service account. Confirm the exact principal format, encryption types and keytab commands against the OpenProject authentication docs before running anything in production.

Authentication docs

Apache with the Kerberos module

OpenProject's Kerberos integration relies on a header set by the Apache web server, so Apache must perform the negotiation and pass the authenticated user name to the application. Confirm which Apache Kerberos module the authentication docs specify for your distribution, how it is installed, and which location block protects the sign-in path. Plan to test the header with a known account before OpenProject trusts it.

Supported OpenProject and Linux versions

Check the OpenProject release you plan to run and the operating system it supports. Packaged installs are documented for Ubuntu 22.04, Debian 12, CentOS or RHEL 9.x and SUSE Linux Enterprise Server 15, and the Docker-based install is the recommended path, so confirm how Apache sits in front of your chosen deployment. Confirm the release against the release notes and the system requirements page, and record the versions you tested.

System requirements

TLS on the public name

Browsers only send Kerberos tickets over a connection the site trusts, and the sign-in flow exposes session data, so the public hostname needs a valid certificate chain that clients accept. Confirm that the certificate name matches the service principal host, that internal clients trust the issuing authority, and that the redirect back to OpenProject uses HTTPS. Mismatched names are a common cause of negotiation failures.

Browser and client configuration

Kerberos negotiation happens in the user's browser, which must be allowed to send tickets to the OpenProject hostname. Confirm which browsers your staff use, whether the hostname is in the intranet zone or an equivalent allow list, and how managed devices receive that policy. Test from a domain-joined workstation and from a machine outside the domain so you know the fallback behavior before users depend on it.

Configure Apache and OpenProject for Kerberos

This sequence takes an OpenProject server from a directory-issued Kerberos ticket to a signed-in user without a password prompt. Each step ends with a check so the team can confirm the ticket, the user header and the account match before moving on. The result is an internal-only sign-in path that sits alongside the standard login.

  1. Create the service principal and keytab

    Your directory team creates a dedicated service account and a Kerberos HTTP service principal for the internal hostname that users will open in their browsers. They export a keytab file and copy it to the Apache server with restricted file permissions, so only the web server account can read it. Ask them to confirm which encryption types the domain allows and how the keytab will be rotated. The step is done when obtaining a ticket with the keytab on the Apache host succeeds, and the cached ticket lists the HTTP principal for that hostname.

  2. Enable the Kerberos module in Apache

    On the Apache host, install the Kerberos authentication module that your distribution packages and that the OpenProject authentication documentation names for this setup. Point it at the keytab and protect only the sign-in location that will carry the Kerberos path. Confirm the exact directive names against the module documentation for your Apache version, since they differ between modules. The step is done when the configuration test reports a valid syntax and a request without a ticket receives a challenge asking the browser to negotiate.

  3. Set the authenticated user header

    Configure Apache to take the authenticated principal, remove the realm suffix if the OpenProject login names do not include it, and set the result as a request header that OpenProject reads. Also configure Apache to clear any client-supplied header with that name, so a user cannot send a forged value. The step is done when a test request carrying a valid ticket reaches the OpenProject backend and a logged or echoed header shows the expected login name in the agreed format.

  4. Confirm the header name in OpenProject

    Compare the header name set in Apache with the value the OpenProject authentication settings expect, following the authentication documentation for your version. Match the spelling and letter case exactly, and confirm whether automatic user creation is enabled for first sign-ins. Sign in with a test domain account whose login already exists in OpenProject. The step is done when OpenProject matches that user by login name and does not create a second account for the same person.

  5. Restrict the Kerberos path to the internal host

    Limit the Kerberos-protected location to the internal hostname and to the network ranges that should reach it. If a reverse proxy or load balancer sits in front of Apache, make sure it does not forward the user header from outside clients and that public hostnames reach only the standard login. Record the decision and its owner in the change record. The step is done when a request to the Kerberos path from outside the internal network is refused or sent to the standard login, and the same request from inside the network signs in.

  6. Test sign-in from domain-joined clients

    From a domain-joined Windows workstation, sign in with a standard test user and open the internal OpenProject URL in a browser set up for integrated sign-in. Repeat from a Linux client if your users have one, using a Kerberos ticket obtained for the test account. Also check a user who is not in the directory, and confirm the break-glass admin login still works. The step is done when the test user reaches OpenProject without a password prompt under the correct account, the excluded user is refused, and the fallback login succeeds.

How the Kerberos principal maps to OpenProject accounts

This table follows one Windows domain sign-in from the Kerberos principal through the header Apache passes to OpenProject, then to the account it lands on. Read each row as a check to confirm in your own environment before go-live, since a mismatch at any step either locks users out or attaches them to the wrong account.

Mapping stepWhat to expectWhat to confirm
Domain principalA user such as jsmith@EXAMPLE.INTERNAL, issued by the domain controller after a Windows sign-inRealm name and principal format in your Active Directory domain, including whether UPN suffixes differ from the Kerberos realm
Header set by ApacheApache authenticates the Kerberos ticket and passes the user identity to OpenProject in a request headerThe exact header name and whether the realm suffix is stripped, in the OpenProject authentication docs for your version
Login attributeOpenProject uses the header value to identify the user at sign-in, so a short name and a full principal produce different loginsWhether the header carries the short account name or the full principal, and whether one format is used consistently across all users
Email attributeEmail may not come from the Kerberos ticket, so accounts created at first sign-in may lack a usable addressWhere the email value comes from in your setup, and whether notifications depend on it
Existing account matchAn account created earlier with a password or another provider may not match a new Kerberos login if the login strings differHow the matching key is chosen in the docs, and a test with one pre-existing account before a wide rollout
Automatic account creationFirst-time Kerberos users may be created automatically, or may need an administrator to create them firstThe account-creation behavior in the authentication docs for your release, and who approves new accounts
Group membershipGroup and role assignment is a separate decision and is not set by the header mapping alonePlan group sources and project roles separately, using the group synchronization and claims topics in this content group

Where Kerberos fits and where it does not

Kerberos fits internal users on domain-joined Windows machines who reach OpenProject from the corporate network. In that setup the user already holds a Kerberos ticket from the domain when the browser opens OpenProject, Apache negotiates that ticket, and the user is signed in without a password prompt. The fit is narrow. Every path into OpenProject must pass through the same Apache gatekeeper, the browser must be configured to negotiate Kerberos for the OpenProject host, and the device must be able to obtain a ticket from the domain controllers. Before committing, confirm with your own environment which browsers and operating systems your staff use, whether each one negotiates Kerberos for the OpenProject hostname, and whether any teams use Linux or macOS workstations that need separate handling.

The limits start where that network assumption breaks. Remote staff on VPN, contractors on unmanaged laptops, users on phones and tablets, and anyone outside the domain cannot present a domain ticket, so they need a second sign-in path, and that path will be a separate configuration with its own accounts and controls. Because the header is set by Apache, the web server becomes a security-critical dependency: changes to its modules, proxy rules or TLS settings can silently change who is trusted, and any reverse proxy placed in front of Apache must pass the header through unchanged. Plan who owns that Apache configuration and how it is tested after each OpenProject upgrade.

Federation protocols such as SAML and OIDC are better suited to reaching SaaS applications and external users, because the identity provider issues a signed assertion or token that any browser-based application can accept over the web, and tools such as Microsoft's Active Directory Federation Services or Keycloak handle that exchange. Kerberos is designed for the directory network, and Microsoft notes that most on-premises apps reach Active Directory through LDAP, Windows-integrated authentication or header-based authentication, with a federation system such as AD FS needed for SaaS. Logout also differs: a Kerberos sign-in has no provider session to end, so you should confirm how sign-out behaves for shared workstations. Compare the options against your user mix rather than by protocol name alone.

Choosing Kerberos, SAML or OIDC for your environment

When every user signs in from inside the corporate network on domain-joined Windows devices, Kerberos through Apache is the method that fits the existing directory most directly. Users already hold Kerberos tickets from their Active Directory logon, and the web server passes the authenticated user name to OpenProject in a header, so no separate sign-in prompt is needed. The trade-off is that the reverse proxy and the domain must stay tightly coupled, and every sign-in path must run through that proxy.

  • Network reach: Browsers must reach the Apache host with Kerberos negotiation working, which generally means internal DNS and a service principal for the hostname.
  • Identity provider ownership: Active Directory remains the source of truth, so no new identity service is introduced.
  • Second-factor handling: Kerberos does not provide a second factor, so plan any extra checks at the directory or workstation layer.
  • Enterprise plan requirement: Confirm on the OpenProject pricing page whether your edition includes the Kerberos single sign-on feature.
  • Alternatives: If you later need SAML for an Active Directory setup, see the sibling topic on OpenProject SAML SSO with ADFS and the LDAP topic for directory sign-in.

Before committing, confirm with your directory team how Kerberos is configured in your domain and whether the Apache host can be joined to the realm.

Securing the Apache and keytab path

Kerberos sign-in for OpenProject depends on two trust points: the keytab that lets Apache accept domain tickets, and the user header that Apache passes to the application. Each card below covers one part of that chain, from file handling and transport to network reach and bypass risk. Confirm the current hardening steps against the OpenProject and Apache documentation before go-live, and align each choice with your Active Directory policy.

Keytab file permissions and rotation

The keytab holds the long-term secret for the Apache service principal, so anyone who reads it can impersonate that service. Restrict the file to the Apache service account and root, keep it out of shared configuration repositories, and store backups under the same access rules. Ask your directory team how service principal keys are rotated, and plan the keytab replacement and a test sign-in as one change so the old key is retired only after the new one works.

HTTPS-only access

The header that identifies the user is only as trustworthy as the connection that carries it. Serve OpenProject exclusively over HTTPS with a valid certificate, redirect plain HTTP, and enable HSTS on the Apache virtual host. Check that session cookies are marked secure and that no internal hostname or alternate listener accepts requests over clear text.

Trusting the header only from Apache

OpenProject accepts the user identity from the header Apache sets after a successful Kerberos negotiation. Configure Apache to clear any client-supplied copy of that header before authentication runs, so a browser cannot send its own value. Verify the header name and its handling against the current OpenProject authentication documentation, because the application trusts whatever arrives in it.

OpenProject authentication docs

Limiting which network reaches the endpoint

Restrict the Kerberos-protected location to the networks where domain-joined clients sit, using firewall rules at the load balancer and host level. Keep the OpenProject application port closed to every source except the Apache reverse proxy, so no other machine can reach the application and submit a header directly. Document the allowed source ranges so the network team can review them with each change.

Spoofed header risk if Apache is bypassed

If a client reaches the application without passing through Apache, it can send the identity header itself and sign in as any user. Test this path explicitly by requesting OpenProject directly from an unauthorized host and confirming that the request is refused. Treat any route that skips the proxy, including health checks, container port mappings and debug listeners, as part of the trust boundary.

Aligning with Active Directory policy

Kerberos sign-in inherits the domain's account rules, so confirm with the directory team which password policy, account lockout and disabled-account handling apply to users who sign in this way. Agree how the service account is created, named and reviewed, and how accounts removed from Active Directory lose their OpenProject access. Record the decisions so the Apache setup matches the same controls your other Kerberos services use.

Why Kerberos sign-in fails and how to fix it

This table lists the failures most often seen when Kerberos sign-in to OpenProject breaks, with the cause and fix for each. Check the Kerberos and Apache error logs first, then work down the rows in the order they appear, since a clock or keytab fault blocks everything after it.

FailureLikely causeFix
Clock skewClient, Apache host and domain controller clocks differ beyond the Kerberos tolerance, so tickets are rejected as expired or not yet validSync all three to the same time source, such as the domain hierarchy, and confirm with the Kerberos log before retesting
Wrong service principal nameThe HTTP service principal in the keytab does not match the public host name users type in the browserCreate or correct the HTTP/ host name principal in Active Directory and match it to the ServerName Apache uses
Keytab missing or mismatchedThe keytab file is absent, has the wrong encryption types, or was exported before a password reset invalidated its keysRegenerate the keytab for the service account, confirm the file path and file ownership for the Apache user, and test it with kinit
Missing realm configurationThe Kerberos configuration file on the Apache host lacks the domain realm or KDC entries, so the host cannot locate ticketsDefine the realm, KDC and domain mapping in the krb5 configuration and verify name resolution to the domain controllers
Browser not set to negotiateThe browser does not send Negotiate credentials for the OpenProject host, often because it is outside the intranet zoneAdd the OpenProject host to the browser's allowed authentication sites through group policy, then test in a clean session
Header name mismatchApache passes the authenticated user in a header name that differs from the one OpenProject is configured to readAlign the header name in the Apache configuration with the OpenProject authentication setting, then restart and check the request headers
User not matched to an accountThe header value (such as a domain user name or full principal) does not match the login stored in OpenProject, so no account is foundDecide on one identifier format, strip the realm suffix in Apache if needed, and correct or pre-create matching user accounts before rollout

Questions teams ask before enabling Kerberos SSO

Is Kerberos single sign-on included in the OpenProject Community edition?

No. Kerberos is listed among the single sign-on options in OpenProject's Enterprise features, alongside SAML, OIDC, CAS and Okta. The Community edition is free and includes work packages, Gantt charts, agile boards, time tracking and dashboards, with community support. Before you commit, check the current feature matrix on the OpenProject pricing page and confirm with OpenProject which plan includes Kerberos for your user count, because plan prices and minimum user counts are set per plan.

How much work is a Kerberos SSO setup, and what changes the timeline?

The effort depends mostly on the directory and the network, not on OpenProject itself. Setup covers a service principal and keytab for the web host, an Apache configuration that passes the authenticated user to OpenProject through the header OpenProject expects, a browser configuration test, and a fallback sign-in path. Complexity rises with multiple domains or forests, cross-realm trusts, Linux hosts that must join a Kerberos realm, reverse proxies or load balancers in front of Apache, and clients spread across networks where Kerberos ticket delivery is unreliable. Ask any partner for a written plan that lists these items so the duration follows from your environment.

Can our internal team set up Kerberos SSO without outside help?

Often yes, if you already run Apache, manage Active Directory and can test Kerberos from a client machine. The work crosses three teams: whoever runs the web server, whoever owns the directory, and whoever supports end users. Gaps tend to appear in SPN registration, keytab handling, DNS name consistency and browser settings for intranet sites. A short internal pilot on a test host will show quickly whether those skills exist in-house. If they do not, a fixed-scope engagement with written deliverables can cover the configuration and a handover.

What must our team provide before a Kerberos SSO engagement starts?

Plan for these inputs before any configuration begins:

  • Domain administrator or delegated rights to register service principal names and create a keytab for the OpenProject host.
  • Working DNS records for the OpenProject hostname, with forward and reverse lookups that match the Kerberos principal.
  • A test host or staging OpenProject instance, so changes never touch the production sign-in path.
  • Access to the Apache configuration and the reverse proxy in front of it.
  • A list of user groups and browsers that must sign in, plus a named owner for the break-glass login.

Confirm each item in writing with your partner, because missing DNS or rights are the most common reasons a pilot stalls.

Can remote users sign in with Kerberos from outside the office network?

Usually not without extra design. Kerberos depends on the client reaching the domain controller and the web host, and on the browser sending a ticket to the server. Staff on a VPN that routes to the domain can often sign in, while users on unmanaged networks, personal devices or networks without line of sight to the domain controller will fall back to a password or another method. Treat Kerberos as an internal-network convenience and plan a second method, such as the SAML or OIDC options covered elsewhere in this group, for remote staff. Verify VPN and browser behavior in your own environment during the pilot.

What does outsourcing Kerberos SSO cost, and what drives the price?

DeployOpen does not publish a price list. A quote follows from a written scope, and most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. The main cost drivers are the number of domains and forests, whether Linux or cross-realm trust is involved, the number of web hosts and proxies, the test coverage you require, and the handover and documentation you need. Costs fall into one-time work (design, configuration, testing, handover) and possible recurring items such as a support or upgrade retainer. Ask for a line-item quote that separates these, plus your OpenProject plan cost, which you pay to OpenProject and not to the implementation partner.

Is Kerberos a sufficient method for our security review, compared with SAML or OIDC?

Kerberos can serve internal users well, but it has limits that security reviewers will ask about. It relies on the domain for trust, it works best on internal networks, and it gives you less flexibility than SAML or OIDC for federated or external access, for example with signed assertion handling, token lifetimes or claim-based group mapping. Document the trust boundary, the fallback login path and who can change the Apache configuration. Your security team should decide whether Kerberos alone meets the policy, or whether it should sit beside a federated method. Confirm the specifics with OpenProject's authentication documentation before you write the design.

How a domain user reaches OpenProject through Apache

The flow starts in the user's browser on a domain-joined workstation, which requests the OpenProject address through the internal network. Apache, with its Kerberos module, negotiates the ticket with the domain controller and then passes the authenticated user identity to OpenProject as a header. The trust boundary sits around Apache: OpenProject should accept that header only from Apache, never from a direct client connection. Check that the header cannot be spoofed and that the account exists in OpenProject before access is granted.

Kerberos sign-in through Apache, with the user header passed to OpenProject.

What a Kerberos integration engagement covers

A Kerberos integration engagement starts with a review of the landscape, not with Apache configuration. DeployOpen looks at the directory the users live in, the network path between clients and the OpenProject host, and the client machines that will send tickets. On the directory side, the questions are which domain and forest hold the accounts, whether users are reachable with the same sAMAccountName or UPN that OpenProject will receive, and how many domains need to work. On the network side, the review covers whether the browser can reach the web server with a host name that matches the service principal, and whether the reverse proxy or load balancer in front of Apache will pass the authenticated user through. On the client side, it covers which browsers are in use, whether they are domain-joined, and whether any Linux or macOS workstations are expected to sign in this way. The output of this review is the input to the scope.

The scope is then agreed in writing before any build work begins. A fixed-scope written agreement should name the OpenProject version and deployment method, the Apache host and modules to be configured, the Kerberos keytab and service principal handling, the fallback sign-in path for users whose browsers cannot negotiate Kerberos, and the test accounts and test clients to be used. DeployOpen configures and tests Apache and OpenProject against that list, checks that the authenticated user reaches OpenProject in the header that the authentication documentation describes, and confirms the behavior for expired tickets and unknown accounts. The handover package is a set of runbooks covering keytab rotation, Apache and OpenProject upgrade checks, and steps to diagnose a failed negotiation. Ask for the scope document to name who owns the service account and the keytab after handover, and confirm with your directory team how key rotation will be run.

How DeployOpen delivers OpenProject Kerberos SSO

DeployOpen plans and builds OpenProject Kerberos single sign-on inside your own infrastructure, starting from how your Windows domain, Apache front end and OpenProject instance fit together. Each engagement is scoped in writing before work starts, so the Kerberos path, its limits and the fallback sign-in are agreed up front.

How we scope

  • Confirm which internal networks and browsers will use Kerberos sign-in and which users need another method.
  • Document the Apache host, OpenProject install method and domain controllers involved, and who owns each component.
  • Agree in writing the deliverables, testing scope and timeline before any configuration changes start on your systems.

How we build

  • Configure Apache Kerberos authentication so the user header reaches OpenProject, with the keytab handled under your controls.
  • Map the authenticated user header to existing OpenProject accounts and test first-login behavior for new and existing users.
  • Test sign-in from domain-joined clients, failed-ticket paths and access from outside the internal network before go-live.

How we hand over

  • Deliver configuration documentation covering Apache settings, OpenProject settings, keytab rotation and rollback steps.
  • Document the limits of Kerberos compared with SAML or OIDC, so your team can record why the method was chosen.
  • Walk your administrators through the break-glass login and the checks to run after Windows or Apache changes.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retest the sign-in path after OpenProject upgrades, Apache updates and domain changes, as agreed in the written scope.
  • Review the setup when you plan a move to SAML or OIDC, so the migration keeps existing accounts working.

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.