Why OpenBao LDAP logins need a plugin on 2.7 and later
If your OpenBao cluster signs people in through LDAP or Active Directory, you need to install the LDAP plugin before or during the move to OpenBao 2.7 or later, because the LDAP auth engine left the main binary in that release. Until the plugin is installed and registered, logins through that method will fail. The work is to install the plugin from the openbao-plugins project, map directory groups to policies, and test those logins on a non-production cluster before you upgrade production. OpenBao documents LDAP as one of its auth methods, next to AppRole, JWT/OIDC, Kerberos, Kubernetes, RADIUS, TLS certificates, tokens, and username and password, plus login MFA. The LDAP method checks a username and password against a directory and issues an OpenBao token whose policies come from the group mappings you configure.
Active Directory Domain Services is a Windows Server role that stores users, computers and other objects. It replicates directory data to every domain controller in a domain and provides a schema, a global catalog and a query and index mechanism. Microsoft's overview of the service also notes that most on-premises applications authenticate against it with LDAP, which makes LDAP the path many platforms take first. For OpenBao, that means the directory is the source of truth for who a person is and which groups they belong to, so the plugin configuration must match how your domains, forests and group objects are organized. Confirm this with your directory team before you write any group mapping.
Teams need this work in two situations: upgrading an existing cluster that uses LDAP to OpenBao 2.7.0, released on September 23, 2026, or 2.7.1, released on October 1, 2026, or building directory login on a new cluster on 2.7 or later. Before you start, confirm which plugin release matches your OpenBao server version in the project's release notes. Then gather the details the configuration needs: the directory servers and their TLS requirements, the bind account and its rights, the user search base, and the group distinguished names that will map to policies. A staging test with a few real directory accounts, including one in each policy group, shows gaps before production users are affected.
How a directory login reaches an OpenBao token
The login starts at the user's CLI or UI, which sends a bind request to the openbao-plugins LDAP plugin running inside the OpenBao network. The plugin checks the credentials against the domain controller across the trust boundary, then asks the directory for the user's group memberships. Those groups map to OpenBao policies, and OpenBao issues a token carrying only those policies. Check the boundary crossing first: it is the hop where firewall rules, LDAPS and service account permissions most often break.
Directory login path from user to policy-bound OpenBao token, with the trust boundary marked.
Which LDAP configuration fits which directory
This table compares the main LDAP configuration choices for OpenBao login against Active Directory and generic LDAP directories. Read each row as a decision: the left column names the choice, and the other columns say when it fits and what it costs you. Confirm exact configuration keys in the OpenBao LDAP method documentation before you write any configuration.
| Choice | Option | When it fits | Trade-off |
|---|---|---|---|
| Transport | LDAPS (TLS-encrypted LDAP) | Any directory that carries passwords or user identity over a network the team does not fully control | Needs a certificate chain that OpenBao trusts, and certificate renewal becomes part of the login runbook |
| Transport | Plain LDAP | Only a lab or an isolated test directory | Credentials and directory data cross the network unencrypted, which most security reviews will reject |
| Lookup | Bind account (service account) for searches | Directories that do not allow anonymous search, and most Active Directory domains | The bind password becomes a secret OpenBao or its operators must store and rotate |
| Lookup | Anonymous or user-bind search | Directories configured to allow it, usually small or legacy setups | Anonymous reads expose more directory data, and user-bind needs the directory to accept each user's own bind |
| Mapping | Direct user-to-policy mapping | A handful of named users, such as an early pilot or a break-glass account | Every policy change touches individual users, and it scales poorly as staff and roles change |
| Mapping | Group-based mapping to policies | Teams whose access follows directory or AD group membership, which is the usual production pattern | Requires a clear group design in the directory and an owner who keeps group membership accurate |
| Schema | Active Directory schema | Active Directory domains, where user and group attributes follow Microsoft's object model | Group nesting and attribute names differ from generic LDAP, so search filters must be tested against the real domain |
| Schema | Generic LDAP schema (for example, OpenLDAP or FreeIPA) | Non-Microsoft directories whose object classes and attributes differ from AD | Filters and group attributes are set by hand, and each directory needs its own test cases before upgrade |
Install the plugin and configure LDAP login step by step
This sequence takes an OpenBao 2.7 cluster from a stock install to working LDAP or Active Directory logins. The LDAP auth engine is no longer in the core binary, so the plugin is installed and registered first. Each step ends with a check you can record before the change moves forward.
Confirm the running version and plugin source
Run the version command on every node and record the exact release, such as the 2.7 patch level you are running. Compare it against the entries on the OpenBao releases page, and confirm which openbao-plugins release matches that server version. Ask your platform team to confirm the artifact location and whether your organization mirrors it internally. Done when every node reports the same version and you have a written plugin version tied to it.
Download the plugin and verify its checksum
On each node, download the openbao-plugins LDAP plugin build that matches the server version, operating system and architecture. Download the published checksum file from the same release and compare it with the output of a SHA-256 hash command on the binary. Stop if the values differ and fetch the artifact again from the source. Done when the hash matches the published value on every node and the hash is recorded in your change ticket.
Install the plugin binary on every node
Place the plugin binary in the plugin directory configured in the server configuration file, using the same path on every node in the cluster. Set the owner and permissions so only the OpenBao service account can execute it, and keep the plugin out of any directory that other users can write to. The plugin is installed separately from the core binary, so the core package alone will not provide LDAP login. Done when the file hash matches on all nodes and the directory listing shows the same file on each.
Register the plugin in the plugin catalog
Register the plugin as an auth plugin using the SHA-256 value you verified, the command name of the binary and the plugin type. Confirm the exact register syntax in the OpenBao plugin documentation for your version before running it. Then list the plugin catalog and confirm the LDAP entry appears with the expected version. Done when the catalog lists the LDAP plugin and the registered hash matches the one you checked in the download step.
Enable the LDAP auth method at a chosen path
Enable the registered plugin as an auth method at a path your team will use in scripts and documentation, such as the default ldap path or a path that names the directory. Use a single path per directory so policies and client configuration stay clear. Then list the enabled auth methods and confirm the new mount shows the LDAP type. Done when the auth list shows the mount, and the path is recorded for the configuration step.
Configure the directory connection and search settings
Set the directory URL, a read-only bind account, the user search base, the group search base and the user attribute used to match logins. Ask the directory team to confirm the attribute names and whether the connection uses TLS or StartTLS, and load the bind password from a secure source rather than typing it into shared history. For Active Directory, confirm the logon name attribute with the directory team before you test. Done when the configuration read returns the expected values with the bind password masked, and a test bind succeeds from an OpenBao node.
Map directory groups to OpenBao policies
Create a group entry for each directory group that should receive access, and attach the policies that group needs. Keep the first set small so that a mistake grants little access, and use the group names exactly as the directory stores them. Confirm the group mapping does not conflict with identity group rules you already use for other auth methods. Done when reading each group entry shows the expected policies and the policy names exist in the cluster.
Verify logins with test users before upgrade
Log in with a test user who belongs to a mapped group and confirm the issued token carries the expected policies. Then log in with a user outside every mapped group and with a disabled directory account, and confirm both are refused or receive no extra access. Repeat the tests on each node, since requests can reach any node in the cluster. Done when the results are written down for each case and the same tests pass on the version you plan to upgrade to.
How to map AD groups to OpenBao policies safely
Once LDAP or Active Directory login works on OpenBao 2.7, the group mapping decides what each person can actually reach. The cards below cover the decisions that shape that mapping, from group naming to removing access when someone leaves, and each one should be settled before the mapping goes live.
Name groups for the policy they grant
Decide the naming scheme for directory groups before writing any mapping, so each group name states the OpenBao policy it maps to, the environment and the access level. Check how nested groups resolve in your directory, because a user who inherits a group through nesting may receive a policy that nobody reviewed directly. Confirm with your directory team which nesting depth your LDAP query returns, and test one nested user end to end before relying on the result.
OpenBao auth docsKeep Domain Users out of policy mappings
Domain Users and similar broad groups contain nearly every account in the domain, including service and contractor accounts. Mapping any policy to them, even a read-only one, grants that access to the whole directory population. Map only purpose-built groups, and confirm with your directory administrators which built-in groups have membership that changes automatically.
Map one group to one policy
Keep each directory group tied to a single OpenBao policy with a narrow purpose, rather than bundling several duties into one broad policy. Narrow mappings make reviews faster, because an auditor can read one group, one policy and one set of paths. When a team needs more access, add a new group and policy instead of widening an existing one.
Handle users in several groups
A person in several mapped groups receives the union of their policies, so two individually harmless groups can combine into more access than either one grants. Review the combinations for privileged roles, such as an administrator who also belongs to an application team group. Tie this check to the identity group work covered in the sibling topic on mapping identity provider groups to OpenBao policies.
Remove access when a person leaves
Directory group removal is the primary offboarding control for LDAP-backed logins, so the process must disable the account or remove group membership in the directory before the person's OpenBao tokens expire. Confirm the token TTLs your configuration issues, because long-lived tokens extend access after the directory change. Test a disabled test account to confirm that new logins fail.
Document the mapping for audit
Keep a versioned record of each group, the policy it maps to, its owner and the date of the last review. Export the mapping configuration on a schedule and store it with change records so a reviewer can see who changed a mapping and when. Ask your auditors which evidence format they accept before you design the record.
Testing directory logins before upgrading to 2.7
Test every directory login path on a staging cluster that runs the target version before any production node moves to OpenBao 2.7. The staging cluster must start from a copy of the production configuration, including the LDAP auth mount path, the url, the bind account, the userdn and groupdn search settings, and the group-to-policy mappings. Install the openbao-plugins LDAP plugin on staging first, so the test exercises the same plugin binary and version you plan to run in production. Run a login for each directory group that grants access, then the edge cases that most often break in practice: an account with an expired password, a locked account, a user who belongs to a nested group, and a user who belongs to no mapped group. Record the outcome of each login, including the token's attached policies and TTL.
Compare the resulting policies with production for the same test users, not just whether the login succeeds. A login that succeeds but attaches fewer or broader policies is a failure for access control, so treat any difference as a blocker until you explain it. Check that nested group membership resolves the way your directory team expects, because group resolution depends on how the plugin reads the directory and on your groupattr and groupfilter settings. Confirm the expected behavior for locked and expired accounts against your own directory policy, since the plugin's response is the control you rely on. The OpenBao migration guide describes replacing the Vault server process in place on all nodes with configuration, endpoints and URLs unchanged, but its testing was limited to Vault 1.14.1 community edition and not Vault Enterprise. Treat that as a starting point and rehearse your own sequence, including the plugin installation step.
Define the rollback before the production change starts. Keep a copy of the working Vault or OpenBao binary, the current configuration and a snapshot of the storage backend, and write down which node you roll back first and how you confirm that directory logins work again. Agree with the directory team who signs off the staging results and who can disable the LDAP mount if a login regression appears. Run the rollback once on staging so the team has seen it work. Recording these steps in the change ticket turns the upgrade into a reversible operation rather than a leap of faith.
Security controls for directory-backed OpenBao logins
Once LDAP or Active Directory is the front door to OpenBao, the directory's security posture becomes OpenBao's login security posture. The cards below cover the controls that connect the two: how the connection is secured, how the bind account is scoped, where traffic can come from, how long tokens live, what gets logged, and how access is withdrawn.
Encrypt and validate the directory connection
Use LDAPS or StartTLS so bind credentials and user passwords never cross the network in cleartext, and pin the certificate chain that OpenBao is allowed to trust. Confirm that the CA certificate loaded into the plugin configuration is the one that issued the domain controller certificates, and test a failed validation on purpose, since a plugin that silently skips verification would pass a happy-path test. Ask your directory team which domain controllers present certificates and whether they rotate on a schedule that your configuration must follow.
OpenBao auth methodsScope the bind account tightly
OpenBao uses a bind account to search the directory before it checks a user's password. Give that account read access to the user and group objects it needs and nothing more, and do not reuse a human administrator account or a domain admin account. Plan rotation of its password as a recurring task with an owner, and confirm that the rotation procedure updates OpenBao's configuration in the same change window so logins do not fail silently after the directory password changes.
Limit which networks reach the domain controllers
Only the OpenBao nodes, or the load balancer in front of them, should be able to open LDAP or LDAPS connections to the domain controllers. Restrict this with firewall rules on the domain controllers and on the OpenBao network segment, and document the source addresses. Remember that in an HA cluster every node may perform logins, so each active or standby node that can reach the directory needs to be in the allow list. Test from a host outside the allow list to confirm the block works.
Keep token lifetimes and policy scope short
A successful directory login issues an OpenBao token whose TTL and attached policies come from the LDAP auth configuration and user or group mappings. Set a short default TTL and a bounded maximum, attach the narrowest policies that match each directory group, and avoid mapping broad groups such as all domain users to powerful policies. Review the policy assigned to each mapped group before the upgrade, because a group that worked on 2.6 with broad access should not carry that access into 2.7 by default.
Audit every login event
Enable an OpenBao audit device before the upgrade and confirm that login attempts, successes and failures from the LDAP path appear in it with the identity and mount that was used. Forward those logs to the central system your security team monitors, and alert on bursts of failed logins against accounts that matter. Test the audit trail during the staging run, since a login path that works but produces no audit record will not meet most review requirements.
Make the directory the single off switch
When a person leaves or changes role, disabling the directory account or removing its group membership should stop new OpenBao logins. Confirm this in staging by disabling a test account and attempting a login, then check whether any token that account already holds remains valid and how long it lasts. Teams should also decide whether to revoke existing tokens as part of offboarding, because a login block alone does not end sessions already issued.
Questions buyers ask about LDAP and AD login on OpenBao
Does upgrading to OpenBao 2.7 break LDAP logins by default?
It can, so treat the LDAP login path as a required check rather than an assumption. In OpenBao 2.7 the LDAP auth engine is no longer in the core binary, so any mount that depends on it needs the LDAP plugin from openbao-plugins installed and matched to the server version before logins are tested. Whether your cluster is affected depends on which auth methods it actually mounts and how it was installed. Confirm this in a test environment built from a copy of your current configuration, and read the OpenBao releases notes for the exact 2.7 changes before you schedule the upgrade. Do not rely on a successful login from one test user as proof that every directory path works.
What does installing the LDAP plugin add to the upgrade work?
Installing the plugin adds a set of steps that sit on top of the normal server upgrade. The work usually includes:
- Obtaining the plugin build that matches your OpenBao version and checking it against your release process.
- Registering the plugin on every node and confirming each node loads the same version.
- Re-enabling or reconfiguring the LDAP mount, including bind account, URL, TLS settings and user and group search paths.
- Rechecking group-to-policy mappings and identity aliases, since login behavior depends on them.
- Updating configuration management, backups and restore runbooks so the plugin is present after a rebuild or failover.
Each step is small, but together they need a named owner and a rollback plan.
What drives the cost of an LDAP or Active Directory login migration?
Most of the cost is staff time, and it rises with directory complexity, the number of groups mapped to policies, and the number of environments that must be tested. Nested groups, several domains or forests, and service accounts with unusual permissions all add review time. If the work also needs a new domain controller, Microsoft's Windows Server 2025 pricing page lists a suggested price of 1,176 US dollars for Standard and 6,771 US dollars for Datacenter for 16 core licenses, with prices varying by region. The same page says each server needs at least 16 cores, and that both editions need a Client Access License for every user or device that accesses the server. Ask for these licensing terms in writing, and separate one-time costs from any recurring subscription.
How long does testing an LDAP login upgrade take?
The duration depends on scope, and no fixed number applies without a written plan. The main inputs are how many directory bind paths and login roles you run, how many groups feed policies, whether MFA or identity aliases sit on top of LDAP, and how many environments must pass before production. A single-domain test with a small group model is narrower than a multi-environment check across several directories. Ask for a test plan that lists each login path, each group mapping, the environments covered and the evidence collected for sign-off. A fixed-scope agreement should state the timeline in writing before work starts.
What does the migration need from our team?
The work needs access and decisions from your side, and most delays come from missing access. Plan for:
- Directory administrator access, or a delegated account with read rights to users and groups, plus a bind account approved for OpenBao.
- A set of test accounts that covers each group and role used for policy mapping, including disabled, locked and nested-group cases.
- A change window for each environment and a rollback decision owner.
- Access to the OpenBao nodes, configuration management and backup systems.
- A named sign-off contact in security or identity who will accept the test evidence.
Agree these items in the written scope so the schedule reflects real availability.
Can our in-house team handle the LDAP plugin upgrade alone?
An in-house team can do it if it already runs OpenBao in production and has working knowledge of your directory, including group nesting, bind permissions and TLS. The risk rises when the team has not tested an OpenBao upgrade before, has no non-production environment that mirrors production identity, or must meet an upgrade deadline while also running other platform work. Compare the staff hours and the test environment you would need with the cost of a partner-led plan. DeployOpen plans, implements, tests and documents this kind of change in your own infrastructure under a fixed scope agreed in writing, and it does not issue audit reports or certifications.
When is Entra ID or Kerberos a better path than LDAP?
LDAP is usually the right path for applications that already speak LDAP and sit inside your network. Microsoft's comparison notes that most on-premises apps authenticate against Active Directory with LDAP, Windows-integrated authentication or header-based authentication, and that SaaS apps need a federation system such as AD FS. Existing Active Directory organizations often use Microsoft Entra Connect to sync identities to Microsoft Entra ID, which may suit cloud-first access. Kerberos through the openbao-plugins Kerberos plugin fits domain-joined Windows workloads better than LDAP binds. Decide per workload, and confirm the identity architecture with your directory team before you choose a path. Microsoft's comparison of Active Directory and Entra ID explains the differences.
How DeployOpen scopes and delivers OpenBao LDAP login work
DeployOpen treats OpenBao LDAP and Active Directory login as a change to a running authentication path, so the work starts with an inventory of current logins and ends with tested evidence before any upgrade. The steps below describe how an engagement is agreed, built, handed over and supported inside your own infrastructure.
How we scope
- Inventory which OpenBao clusters use the LDAP auth method today and which directory servers, bind accounts and TLS settings they depend on.
- Agree in writing which OpenBao versions, plugin install method and group mapping rules are in scope, since engagements are fixed-scope.
- Confirm with your directory team who owns the bind account, LDAPS certificates and group membership changes before work starts.
How we build
- Install the LDAP plugin from openbao-plugins on a staging cluster that mirrors your production configuration and directory connection.
- Map directory groups to OpenBao policies and test each mapping with real user accounts from each affected group.
- Run login tests against the upgraded staging cluster and record failures, including CLI, automation and any Agent-based logins.
How we hand over
- Deliver the plugin installation steps, group mapping table and configuration files so your team can repeat the process on other clusters.
- Document the pre-upgrade test checklist and the rollback steps you would use if a login path fails after the upgrade.
- Walk your platform and directory teams through the test results and open items before production cutover.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, scoped in writing once the handover is complete.
- Support can cover retesting after each OpenBao minor release and after directory changes such as new domain controllers or certificate renewals.
- Ask for the retainer scope, response expectations and included retest runs in the quote so the terms are clear before signing.

