When OpenBao Kerberos authentication fits Windows domain workloads
OpenBao's Kerberos auth method lets a service that already holds an Active Directory identity log in to OpenBao using that identity, so it never needs a separate password or stored secret ID. Teams choose it when their workloads run on domain-joined Windows servers, the service account is already managed in the domain, and the business wants secret access to follow directory policy rather than a parallel credential store. The method is one of the auth methods documented in OpenBao's auth methods reference, alongside AppRole, LDAP, TLS certificates and JWT/OIDC. The Kerberos plugin itself is delivered through the openbao-plugins project rather than the core binary, so the plugin must be installed and its version matched to your OpenBao release. Confirm the plugin version against the release you are running before planning the build, because plugin compatibility is tied to the server version and an upgrade can break a working login.
The main alternative for services is AppRole. AppRole suits servers outside the domain, such as Linux hosts, containers or pipeline runners, that cannot obtain a Kerberos ticket from Active Directory. OpenBao's own documentation recommends AppRole for servers and Userpass for developer machines, so Kerberos is a deliberate choice for domain-joined Windows workloads rather than the default. The practical question is therefore which identity your service already has. If the workload runs under a domain service account and the team already manages that account's lifecycle, Kerberos removes a secret to rotate. If the workload is outside the domain or its identity is managed elsewhere, AppRole with a tightly controlled secret ID delivery is usually the simpler path. Decide this per workload class, and document which hosts fall into each group, so that auditors and operators can see why each method was chosen.
How a domain-joined service gets an OpenBao token through Kerberos
The flow starts with a service account or host principal that holds a keytab on the workload host. OpenBao Agent uses that keytab to request a ticket from the key distribution center on a domain controller or FreeIPA server, then presents the ticket to the OpenBao Kerberos auth method. OpenBao validates the ticket against the directory before it issues a token, which the Agent hands to the workload. The trust boundary sits between the directory and OpenBao, so check who can read the keytab, that the clocks are synchronized, and that the token lifetime is short.
Kerberos login path from a domain-joined host into OpenBao, with the keytab and trust boundary marked.
Which login option fits which domain workload
This table compares four ways a workload or person can log in to OpenBao from a Windows domain: Kerberos through the plugin, Kerberos through Agent auto-auth, AppRole, and LDAP or Active Directory login. Read each row for the identity presented, what your team must keep current, and the situation where that option fits best.
| Login option | Identity presented and who uses it | What the operator maintains | When it fits |
|---|---|---|---|
| Kerberos auth plugin (direct client login) | A Kerberos service principal or domain account for a domain-joined service or host that can obtain a ticket itself | Service principals, keytabs, the OpenBao auth role mapped to each principal, and the Kerberos realm and key distribution settings | A domain-joined service that can request its own Kerberos ticket and already has a directory identity you want OpenBao to honor |
| OpenBao Agent auto-auth with Kerberos | The same Kerberos identity, used by the Agent on the host to log in and keep a token renewed for local applications | Agent configuration, the keytab or ticket source the Agent reads, token sink paths and file permissions, and the Kerberos auth role | Windows or Linux hosts running several applications that should not each handle Kerberos or OpenBao login logic |
| AppRole (role ID and secret ID) | A role ID and a secret ID issued to a server, pipeline or application that has no directory identity of its own | Role definitions, secret ID TTL and use limits, delivery of the secret ID (for example with response wrapping), and token settings | Servers and pipelines outside the domain or without Kerberos support; OpenBao recommends AppRole for servers, so choose Kerberos only when the domain identity is the better source of truth |
| LDAP or Active Directory login (people) | A named user account in Active Directory, used by an operator or developer at login | The LDAP plugin installation on OpenBao 2.7 and later, group mapping to policies, service account bind settings, and the test plan before upgrades | Staff who sign in to OpenBao from workstations or the CLI; OpenBao recommends Userpass for developer machines, so confirm the directory option against your own login policy |
Set up the Kerberos auth method in order
This sequence takes a domain-joined service from an unconfigured OpenBao cluster to a Kerberos login that issues a token carrying only the policies it needs. Each step closes with a check, so a failure is caught before the next layer depends on it.
Confirm the Kerberos plugin is available
Before anything else, confirm that your target OpenBao release can load the Kerberos auth plugin from openbao-plugins. The auth methods documentation lists Kerberos among supported methods, but plugin packaging has changed between releases, so check the release notes for the exact version you run. Ask your OpenBao vendor or internal platform owner to confirm the plugin binary, its checksum and the plugin catalog entry for your build. Done means the plugin appears in the list of enabled auth methods on a test node, and the plugin version matches the core server version you plan to run in production. If it is missing, stop here and install the matching plugin build before going further.
Prepare the realm and service principal
Work with the directory team to decide where the OpenBao service identity lives. In an Active Directory domain, create a dedicated service account for the OpenBao host and register a service principal name (SPN) that matches the hostname clients will use to reach OpenBao, following the naming convention your Kerberos administrators already use. If you run FreeIPA, create the equivalent host and service principal there, and confirm the realm name in uppercase matches your DNS domain. Verify the principal resolves with a directory query and that the domain controllers issue tickets for it. Done means a test client can obtain a service ticket for the OpenBao SPN from its own domain, and the directory shows no duplicate SPNs for that name.
Create the keytab on the OpenBao host
Generate a keytab for the service principal on the OpenBao host, using the Kerberos tooling your directory team provides, and restrict its file permissions so only the OpenBao service account can read it. Rotate the account password only through the process your directory team documents, because a password change without regenerating the keytab breaks logins silently. Store the keytab outside version control and outside the configuration directory that backups copy freely. Done means a Kerberos client on the OpenBao host can authenticate with the keytab and list a valid ticket for the service principal, and the file mode is verified as restricted.
Configure the auth method and its role
Enable the Kerberos auth method at its path and point it at the keytab, realm and service principal, using the configuration keys listed in the current OpenBao auth documentation for your release. Then create a role that binds the method to the directory principals or groups allowed to log in and attaches a narrowly scoped policy. Start with one read-only policy for one workload, and avoid attaching broad administrative policies to a machine identity. Done means a test principal can log in through the role and receives a token, while an account outside the bound group is refused. If the configuration fails, disable the auth path, restore the previous configuration from your backup, and re-run the test before retrying.
Configure OpenBao Agent auto-auth
Set up OpenBao Agent on the Windows workload host with an auto-auth block that uses the Kerberos method and the role created in the previous step. Keep the agent configuration generic in your change record: the agent reads the Kerberos credentials of the service account it runs as, so run it under that identity and confirm the service account has the ticket it needs. Configure the token sink to a file readable only by the workload process, and set the agent to renew or re-authenticate on its own schedule. Done means the agent starts, writes a token to the sink, and logs a successful authentication without printing the token itself. If the agent cannot authenticate, roll back to the previous service configuration and keep the workload on its existing secret source until the fault is found.
Verify issued tokens carry only intended policies
Inspect the token created by the agent and by a manual test login, and confirm its attached policies match the list you intended, with no inherited default or administrative policies beyond what you chose. Confirm the token has a finite lifetime and that a read against a path outside the policy is denied. Then check the audit log for the login event and the policy decision, and confirm the record names the principal and role without storing the token. Done means the token's policy list, its lifetime and the denied out-of-scope read all match the design. If a token carries an unexpected policy, revoke it, correct the role, and repeat this check before the workload moves into use.
Active Directory or FreeIPA as the Kerberos realm
In an Active Directory environment, the domain controllers act as the Kerberos authority, so the OpenBao Kerberos plugin has to validate tickets issued by the same domain that already signs in your Windows users and services. Microsoft's comparison of Active Directory and Entra ID notes that most on-premises apps authenticate with LDAP, Windows-integrated authentication (NTLM and Kerberos) or header-based authentication, so Kerberos is often already the working path for your servers. Linux hosts are the less automatic case. The same comparison states that Linux machines need third-party tools or must be configured to authenticate against Active Directory as a Kerberos realm, which is the configuration OpenBao nodes will depend on.
- Service account and keytab: Confirm which service account OpenBao will present, which service principal name (SPN) it uses and who controls the keytab.
- Domain controller reachability: Confirm which domain controllers may issue tickets and that every OpenBao node can reach them through the firewall.
- Encryption types: Confirm that the Kerberos encryption types allowed by domain policy match what the plugin and client libraries accept.
- Machine identity: Identify which Windows services or hosts are domain-joined and which need a separate account.
Check the SPN registrations and the domain controller list in a lab domain before you request a production service account.
If your Linux estate runs FreeIPA, FreeIPA can act as the Kerberos realm for OpenBao while Active Directory users reach it through a trust. The FreeIPA Active Directory trust setup guide describes a cross-forest trust with an Active Directory domain on Windows Server 2008 R2 or later, which lets AD users reach Linux resources. That path is useful for people, but OpenBao then depends on a trust that spans two directories. Treat the trust as a dependency to prove, with its own test cases and failure notes, before any OpenBao role is configured against it.
- Trust direction: Confirm whether the trust is one-way or two-way and which realm issues the ticket for the OpenBao principal.
- Domain functional level: Confirm that the AD domain controllers run Windows Server 2008 R2 or later, as the FreeIPA guide requires.
- Time synchronization: Confirm that FreeIPA servers, AD domain controllers and OpenBao nodes use the same trusted time source, since Kerberos rejects tickets when clocks drift beyond the policy limit.
- SPN and name mapping: Confirm which SPNs live in FreeIPA and which in AD, and how cross-realm user names map to identities OpenBao will recognize.
- Cross-realm login test: Run a login from an AD test user to a FreeIPA-hosted service and record each step of the ticket chain.
Record the trust direction, the ticket path and the expected failure behavior in writing before OpenBao configuration starts.
Whichever directory you run, the OpenBao Kerberos role inherits its settings from the directory, so changes to SPNs, keytabs, trusts or clocks can break logins without any change on the OpenBao side. Agree on ownership and a sign-off list with the directory team first. Licensing and lifecycle also shape the work. Microsoft's pricing page for Windows Server 2025 states that both Standard and Datacenter editions need a Client Access License for every user or device that accesses the server, so any new server or access pattern may change license needs. Confirm the operating system version of your domain controllers as well, because mainstream and extended support dates differ by release.
- Directory ownership: Name the team that controls AD or FreeIPA changes, because the OpenBao role depends on their settings.
- SPN inventory: List existing SPNs for the OpenBao hosts and any clients to avoid duplicates and conflicting registrations.
- Clock source: Document the time source for every system in the Kerberos path, including virtual machines.
- Licensing impact: Ask your licensing contact whether the users and devices that will reach the directory through this design change your Windows Server CAL position.
- Lifecycle position: Check the support status of your domain controller operating system in Microsoft's Windows Server 2022 lifecycle and plan any upgrade before the build.
Ask the directory team to sign off on this list before any keytab, SPN or trust change is made.
Security risks in Kerberos login for OpenBao
Kerberos login ties OpenBao to the Active Directory trust model, so a weakness in the domain or on the OpenBao host can become a weakness in secrets access. The cards below cover the risks that most often go unchecked, with the control to apply and what to verify for each.
Keytab exposure on hosts
A keytab holds long-term Kerberos keys for a service principal, so anyone who can read it can impersonate that service. Treat keytab files as secret material, the same as other credentials: restrict file permissions to the service account, keep them off shared file shares and out of configuration repositories, and store backups encrypted. Verify that only the OpenBao process account can read the keytab on the OpenBao host and on any workload that holds one, and that a copy taken from backup or an old image cannot still authenticate.
Over-broad service principals
A service principal should map to one service on one host, not to a shared account reused across applications. When one principal serves several workloads, a compromise of one exposes the others, and OpenBao roles bound to that principal inherit the wider access. Verify that each OpenBao Kerberos role maps to a dedicated principal, that its OpenBao policy grants only the paths that workload needs, and that unused principals are removed from the directory.
Clock skew with the domain controller
Kerberos rejects tickets when the clocks of the client, the OpenBao host and the key distribution center drift beyond the allowed tolerance, which causes login failures that are often misread as credential problems. The reverse risk is also real: an attacker who can move a clock can replay older tickets. Keep every OpenBao node synchronized to the domain hierarchy, monitor offset alerts, and verify time sync on each node after reboots and virtual machine snapshots.
Ticket and token lifetimes
Two lifetimes matter: the Kerberos ticket that proves identity to OpenBao, and the OpenBao token issued after login. A long ticket lifetime widens the replay window, and a long token TTL keeps access alive after the workload should have lost it. Set the shortest ticket and token lifetimes that the workload tolerates, cap the maximum token TTL in the role, and confirm that renewal behavior matches the intended session length.
Delegation settings
Delegation lets a service obtain tickets that act on behalf of a user, which is useful for some multi-tier applications but gives a compromised service the power to act as any delegated user. Review constrained and unconstrained delegation on the service account, and remove delegation from principals that only need to authenticate to OpenBao. Verify the delegation setting in the directory for every principal bound to an OpenBao role, and record the reason for any exception.
Audit logging of login events
Kerberos logins to OpenBao should leave a trail that security teams can review, covering who authenticated, from which host, through which role, and whether the attempt succeeded. Enable OpenBao audit devices and forward them to a store the OpenBao administrators cannot edit, and collect the domain controller events for the same accounts. Verify that a failed login and a successful login both appear in review, and that alerts fire on unexpected principals or hosts.
What Windows Server licensing and lifecycle mean for this design
The licensing and lifecycle costs that matter most for this design sit on the domain side, not in OpenBao. OpenBao's Kerberos plugin depends on a working key distribution center, which in a Windows domain means domain controllers, and those servers need Windows Server licenses before any OpenBao work starts. Per Microsoft's Windows Server pricing page, Windows Server 2025 is licensed per core, with a minimum of 16 cores per server and 8 per processor. Both Standard and Datacenter editions also need a Windows Server Client Access License for every user or device that accesses the server, so the count of users and devices that will hit the domain controllers is a cost driver as well as a design input. Microsoft lists a suggested price of 1,176 US dollars for Standard and 6,771 US dollars for Datacenter, each for 16 core licenses, and notes that prices vary by region. Treat those figures as a starting point and ask your reseller or Microsoft licensing contact for the quote that applies to your country and agreement.
Pay-as-you-go licensing through Azure Arc is listed at 33.58 US dollars per core per month. That changes the cost profile from a one-time purchase to a recurring charge, so confirm with Microsoft whether it fits your domain controller footprint and whether your existing agreements already cover the servers. Lifecycle is the second cost component. Windows Server 2022 mainstream support ended on October 14, 2026, and extended support ends on October 15, 2031, according to Microsoft's lifecycle page. Windows Server 2025 mainstream support ends November 14, 2029, with extended support ending November 15, 2034. If your domain controllers run 2022, plan the move to 2025 or confirm your support position before you fix the Kerberos design.
Plan the domain controller upgrade path before the Kerberos design is fixed. Decide which Windows Server version the domain controllers will run, the number of domain controllers per site, and whether the OpenBao Kerberos configuration (service principal names, keytab handling and the krb5 settings on the OpenBao nodes) will need retesting after a domain controller change. Ask the domain team to confirm their upgrade schedule, the license count they need for the target year, and the support end date that applies to each controller. Those answers decide whether you build against today's domain or a domain that will change within the life of the OpenBao deployment.
Limits to confirm before you build
The Kerberos plugin sits outside the OpenBao core binary, so its availability depends on your release and install. The items below are where the researched facts stop and your own test environment, the plugin documentation or the vendor must answer the question before you commit to a design.
Plugin presence and version
Confirm that the openbao-plugins Kerberos plugin is installed on your exact OpenBao release, and that its version matches the server. Plugins are not in the core binary, so a successful upgrade does not guarantee the auth method is present. Ask how the plugin is installed, pinned and upgraded alongside OpenBao itself, and test the login path on a staging cluster first.
Auth methods docsEncryption types in your directory
Kerberos logins depend on the encryption types your domain controllers issue and your keytabs contain. Check which types your Active Directory accepts, which the OpenBao plugin supports, and whether legacy types are still enabled in your domain policy. A mismatch typically fails at login rather than at configuration, so verify with a real keytab from a test account.
Agent or alternate delivery
Confirm whether each workload can run OpenBao Agent with Kerberos auto-auth, or whether it must receive a token another way. Legacy Windows services, appliances and workloads without a service account may not fit. Ask the plugin documentation which Agent versions support the Kerberos method and what the Windows service runs under.
MFA and group mapping behavior
Login MFA and identity group mapping may not apply the same way to a Kerberos login as to OIDC or username logins. Test whether MFA is enforced on Kerberos logins, how the resulting entity and aliases map to policies, and whether group membership comes from Active Directory at login time. Record the answers before you write policies that depend on them.
Behavior during directory outages
Kerberos logins need a reachable key distribution center. Confirm what happens to existing tokens, Agent renewals and new logins when domain controllers are unavailable, and whether a configured multi-site or read-only domain controller path exists. Plan for the outage case by testing lease expiry and recovery, not only the happy path.
Windows Server version coverage
The researched facts cover the Windows Server 2025 and 2022 lifecycle and licensing, but not Kerberos behavior on each server version. Confirm with Microsoft's documentation and your own tests that the domain functional level and server versions in your forest support the encryption types and ticket behavior your design needs.
Windows Server 2025 lifecycleWhat buyers ask about OpenBao Kerberos authentication
What drives the cost and effort of Kerberos authentication for OpenBao?
The biggest drivers are the size and shape of the Active Directory forest, how many workloads need to log in, whether a FreeIPA trust or other cross-realm work is involved, and how much testing and handover the team needs. A small single-domain setup with a handful of services is far less work than a multi-forest estate with dozens of service accounts and keytab handling. Costs have a one-time part (design, plugin installation, keytab and SPN setup, testing, documentation, handover) and a recurring part (upgrades, plugin updates and changes as workloads are added). Ask any provider for a written quote that lists the directory systems in scope, the number of workloads, the test environment, and what the handover includes. DeployOpen does not publish prices; a quote follows from the written scope.
Can our own team set up OpenBao Kerberos login without a partner?
Yes, if your team already runs Active Directory and has someone comfortable with Kerberos concepts such as service principals, keytabs, encryption types and time synchronization. The work is mostly configuration and testing, but mistakes in SPN registration or keytab handling tend to appear only when a real workload tries to log in, so a test domain matters. A partner is most useful when the team lacks Kerberos or directory experience, when several domains or a FreeIPA trust are involved, or when the change must pass a formal review with evidence. Confirm the plugin version and its documentation for your OpenBao release before deciding, since plugin packaging changed around the 2.7 line.
How long does a Kerberos authentication project usually take?
Duration depends on the number of domains and workloads, how quickly directory administrators can create service accounts and SPNs, how long change approvals take, and how much testing your team requires before production. Organizations with a clean test domain and a short list of workloads move faster than those with multiple forests or strict change windows. Ask the provider for a timeline tied to the agreed scope, with named milestones for design sign-off, test-domain validation, pilot workload, production cutover and handover. Treat any duration given without a stated scope as a starting point, not a commitment.
What do we need to provide before the work starts?
Plan for directory administrator access, or a named administrator who can perform the changes, along with a test domain that mirrors production closely enough to catch naming and encryption problems. You will also need an inventory of the Windows services or hosts that will authenticate, the OpenBao policies they should receive, and change windows for production updates. If a FreeIPA trust is part of the design, the Active Directory and FreeIPA owners both need to be involved. Confirm with your directory team which encryption types are allowed and how time synchronization is enforced across hosts, because Kerberos is sensitive to clock skew.
Is OpenBao Agent required for Kerberos auto-auth?
No. A workload can log in to OpenBao with Kerberos directly through the API or CLI, but OpenBao Agent with auto-auth is usually the practical choice for long-running Windows services. The agent performs the login, keeps the resulting token renewed, and writes it where the service can read it, so application code does not need to handle Kerberos tickets. Teams that cannot change application code often rely on the agent for this reason. Confirm how the agent's Kerberos method is configured for your OpenBao version, and test token renewal and restart behavior on a Windows host before rolling it out widely.
What support should we expect after go-live?
Expect the work to include handover documentation, a runbook for adding workloads, keytab rotation steps, and a troubleshooting guide for common Kerberos failures such as clock skew, SPN conflicts and encryption-type mismatches. Ongoing needs include plugin updates when OpenBao releases change, directory changes, and periodic testing after host or domain changes. Whether this is covered by a one-time handover or an ongoing retainer should be written into the scope. DeployOpen offers ongoing support, upgrades and continuous testing as retainers, and most engagements are fixed-scope with deliverables agreed in writing before work starts.
Does a Kerberos setup count as a compliance control on its own?
No. Kerberos login is one way to authenticate workloads, and it supports access control decisions, but it does not by itself satisfy a compliance requirement. Assessors usually look for evidence: documented configuration, access reviews, logs of logins and policy changes, and proof that keytabs and service accounts are protected and rotated. DeployOpen prepares systems, controls and evidence for compliance assessments but does not issue audit reports or certifications; independent auditors and certification bodies do that work. Ask your auditor which evidence they expect before the design is final.
How DeployOpen scopes and delivers Kerberos authentication for OpenBao
DeployOpen plans OpenBao Kerberos authentication for Windows domain workloads as a fixed-scope engagement inside your own infrastructure. The work covers the openbao-plugins Kerberos plugin, keytab and service principal handling, OpenBao Agent auto-auth, and the tests and handover documents your security and identity teams need to review it.
How we scope
- Written scope lists which domain controllers, service accounts and Windows workloads will authenticate to OpenBao.
- Scope states the OpenBao version, the plugin version and the Kerberos realm and keytab handling approach in use.
- Scope names the roles, policies and token settings each workload receives, and which workloads are excluded.
How we build
- We install and configure the Kerberos plugin from openbao-plugins on your OpenBao nodes, in your environment.
- We create service principals, keytabs and roles with tested binding rules, then configure OpenBao Agent auto-auth on target hosts.
- We test failed logins, expired tickets, wrong realms and policy boundaries before any workload moves to production.
How we hand over
- You receive configuration records, role and policy inventories, and the keytab rotation procedure written for your operators.
- Handover includes a retest checklist and runbook steps for adding a new workload or replacing a service account.
- Documentation maps each control to evidence your compliance and security reviewers can inspect directly.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Upgrade planning checks the Kerberos plugin against each OpenBao release before your nodes are changed.
- Ask any provider to confirm the plugin version support window and how keytab changes are tested in your domain.

