OpenBao Active Directory and LDAP password rotation for service accounts
Service accounts in Active Directory or OpenLDAP often carry static passwords that nobody wants to change, because applications, scheduled tasks and services may store them in configuration files and break when they change. OpenBao's LDAP secrets engine manages these directory passwords, and it now ships as an external plugin rather than as part of the core server, so your team must plan the plugin installation and keep its version aligned with the OpenBao release you run. Rotation means OpenBao sets a new password on a managed directory account on a schedule or on demand, and clients read the current value from OpenBao instead of from a fixed copy. Checkout is a related pattern for shared accounts: one person or job receives the password for a limited time, and OpenBao can rotate it after the check-in so the next user does not inherit a known credential.
The three directory types in scope are Active Directory, OpenLDAP and RACF. Active Directory is the most common target in the organizations we serve, and OpenLDAP is the usual choice for Linux-centric estates. RACF is a mainframe security product and is the least familiar of the three to most platform teams. Before you design anything, confirm against the current OpenBao LDAP secrets engine documentation which operations, account types, password policies and connection settings each directory supports, including whether RACF is supported at all and under which plugin version. Also confirm how the bind account that OpenBao uses to change passwords must be configured in each directory, what privileges it needs, and how it is protected, because that account becomes one of the most sensitive credentials in the design. Document these answers in your design record so the rotation plan rests on verified behavior.
What the directory and OpenBao side need before rotation is configured
Password rotation touches three systems at once: the directory, the OpenBao cluster and the network between them. Each card below is a prerequisite that has to be settled before the LDAP secrets engine can rotate anything, and most delays come from one of these being decided late.
Directory platform and support lifecycle
Confirm which directory server you run and how long its support lasts before you build on it. Windows Server 2025 is the current release, and mainstream support ends November 14, 2029 with extended support to November 15, 2034. Windows Server 2022 mainstream support has already ended, and extended support runs to October 15, 2031. Check which release your domain controllers run, because the LDAP behavior you test against should match the version you will operate.
Windows Server 2025 lifecycleOpenBao version and plugin match
The LDAP secrets engine now ships as an external plugin, so the plugin binary and the OpenBao server must be a matched pair. Install the plugin on every node, register its SHA-256 checksum, and confirm the exact pairing in the release notes for your OpenBao version before you upgrade either side. Record both versions in your change ticket so a later upgrade can be checked against the same pairing.
OpenBao releasesLDAPS and certificate trust path
Rotation sends new passwords over the wire, so plan for LDAPS (LDAP over TLS) from OpenBao to each domain controller or LDAP server. Decide which certificate authority signs the directory certificates, import that CA chain into OpenBao's trust configuration, and confirm that the certificate name matches the hostname you configure. Test each domain controller separately, since one server with a stale certificate can cause intermittent rotation failures.
Dedicated bind account with minimal rights
Create a separate directory account that OpenBao uses to bind and change passwords, and grant it only the delegated rights rotation needs on the target objects. Avoid domain administrator membership. Document which organizational units it can reach, store its credential only in OpenBao's own configuration path, and ask the directory team how they will review and rotate this account itself, since it becomes a high-value target.
Network paths and change windows
Map every network path the cluster needs: OpenBao nodes to each domain controller on the LDAPS port, plus any firewall rules between data center zones. Agree change windows with the application owners who depend on the rotated accounts, because a rotated service password that a running service still uses will stop that service. Ask who approves the window and how a failed rotation is rolled back.
Directory licensing is a separate cost
Windows Server licensing is a cost your team already carries for the directory, and it is separate from OpenBao work. Microsoft's pricing page lists a suggested price of 1,176 US dollars for Standard and 6,771 US dollars for Datacenter for 16 core licenses, and notes that prices vary by region. Confirm your existing license position with your Microsoft channel or licensing advisor rather than treating it as part of the rotation project.
- Standard, 16 cores
- 1,176 USD
How OpenBao rotates a directory password and serves checkouts
The diagram starts with OpenBao's LDAP secrets engine, which holds a bind account credential and uses it to reach the directory across a trust boundary. On a scheduled rotation, OpenBao sets a new password in the directory and stores the new value in its own storage. On a checkout, a client receives the current password while the account is held for other requesters until check-in or lease expiry. Confirm with your directory team how each directory type handles password changes, locking and bind permissions.
Scheduled rotation and checkout paths between OpenBao, the directory and a client.
Configuration sequence for the LDAP secrets engine
This sequence takes an OpenBao cluster from no directory connection to verified password rotation and checkout for Active Directory, OpenLDAP or RACF accounts. Each step ends with a check so the team knows the previous layer works before the next one depends on it.
Install and enable the LDAP plugin
The platform engineering team installs the external LDAP secrets engine plugin on every OpenBao node, registers it in the plugin catalog with the checksum published for the release they run, and enables it at a chosen mount path. Because the plugin ships outside the core binary, a node that lacks it will fail to serve the mount after a restart, so every node must be checked. Confirm the plugin appears in the catalog on each node and that the mount reports as enabled from a client connected to the leader and to each standby.
Connect to the directory over LDAPS
The directory administrator provides the domain controller or LDAP server hostnames and the certificate chain that signs their LDAPS certificates. The OpenBao team configures the engine with the URL, the certificate chain and the base search context, and avoids plaintext LDAP so bind credentials are never sent unencrypted. Confirm the chain is trusted by testing the TLS handshake from each OpenBao node with the same chain the engine will use. The step is complete when the configuration read returns the connection settings without error and a connection test against each directory server succeeds.
Create and validate the bind account
The directory team creates a dedicated bind account with only the rights needed to read and reset passwords for the target accounts, and no membership in administrative groups. The OpenBao team stores its credentials in the engine configuration and, before any managed account is added, uses a test account to confirm that a password change succeeds and that the bind account cannot change passwords outside the agreed organizational unit. Record the exact delegated permissions in the change ticket. The step closes when a test password change on the test account succeeds and an attempted change on an out-of-scope account is refused.
Define static roles and library sets
The team maps each account to the right object type. Individual service accounts whose passwords are rotated on a schedule become static roles, and shared accounts that must be checked out by one person at a time are grouped into library-style sets. Confirm the exact object names and fields in the LDAP secrets engine documentation for the OpenBao version in use before writing configuration, because naming differs between releases. The step closes when each role or set is listed by the API with the expected account names, and a read of a test account returns the current password to an authorized client.
Set rotation schedules and password policy
Owners of each account decide the rotation interval and any check-in and check-out time limits, based on how often the service consumes the password and what the application team can tolerate during a change. The security team sets the password policy that the directory enforces for generated values, and confirms that the directory's own password history and complexity rules do not reject generated values. Record each interval in the register of managed accounts. The step closes when a manual rotation of one test role updates the password in the directory, and the new value works for a bind test while the old value fails.
Restrict read and checkout with policies
The security team writes OpenBao policies that grant each named workload or operator read or check-out capability on specific roles or sets only, using the paths documented for the engine. Shared accounts should be granted to a named group, and service accounts should be granted to the auth role of the workload that consumes them. Review each policy against the account register before enabling it. The step closes when an authorized identity reads or checks out the intended account, and an unauthorized identity receives a permission-denied response for the same path, with both results recorded in the audit log.
Test rotation and checkout end to end
The operations team runs a complete cycle on a non-production account: a check-out by an authorized operator, use of the password against the target system, check-in, and a scheduled or manual rotation followed by a bind with the new value. They also confirm that a second checkout of a locked shared account is refused until check-in. Review the audit log entries for each action and confirm the directory shows the expected password change times. The step closes when every action completes as designed and the test results are filed with the change record before any production account is onboarded.
How OpenBao objects map to directory accounts and consumers
This table pairs each OpenBao object in a directory password rotation design with the directory object it manages and the decision it controls. Read it before building the mapping, then confirm each field name and rule against the LDAP secrets engine documentation for the plugin version you install, since the research did not confirm them.
| OpenBao object | Directory object | What it controls | What to confirm |
|---|---|---|---|
| Bind account | Directory service identity used by OpenBao to connect | Permission to read and change managed passwords, so its scope sets the blast radius of a compromise | Exact permissions required for reset and checkout, and whether the bind account is limited to specific OUs |
| Individual service account role | One managed service account | Which account OpenBao rotates on a schedule and which policy-driven lease or checkout rules apply | Required role parameters and the name of the rotation period field in the installed plugin version |
| Shared account checkout set | A group of shared accounts such as an administrator pool | Which accounts are handed out one at a time, with check-in or automatic rotation after use | Whether checkout sets are a native concept in the plugin or must be modeled as multiple roles |
| OpenBao policy | Applications or operators with login identities | Who may read a managed credential or request a checkout, and which paths they can call | Path names for read and checkout operations and how auth method identities map to policies |
| Directory group or organizational unit | Accounts in scope for rotation | Which accounts a design covers, and the boundary used to scope the bind account | Whether the plugin filters by group or OU, or whether each account must be declared individually |
| Rotation schedule | Directory password policy | How often passwords change and whether the new value meets complexity, history and minimum age rules | Whether OpenBao's generated password settings align with the domain policy, and the behavior when a change is rejected |
How the approach differs for Active Directory, OpenLDAP and RACF
Active Directory Domain Services stores users, computers and other objects, and it replicates directory data to every domain controller in a domain. A rotation workflow therefore changes a directory that many controllers hold copies of, so the team needs to know how a new password reaches the other controllers and how the plugin behaves while replication is still in progress. Bind and rotation rights are granted on the directory side, and they must exist before OpenBao can change anything.
- Replication scope: A password change on one domain controller reaches the others through replication, so confirm how the plugin handles a window in which another controller has not yet received the new value.
- Rotation rights: The bind account and the permissions to reset target account passwords are granted in Active Directory. Scope them to the service accounts being rotated.
- Connection path: Most on-premises applications authenticate with LDAP or Windows-integrated methods. Confirm the protocol, port and certificate trust the plugin requires for the connection.
- Windows Server lifecycle: Windows Server 2022 mainstream support ended October 14, 2026, and extended support ends October 15, 2031. Windows Server 2025 mainstream support ends November 14, 2029. Build the upgrade plan around the domain controller versions you run.
- Licensing: Windows Server 2025 is licensed per core, with a minimum of 16 cores per server, and client access licenses apply to each user or device that accesses the server. Ask the directory team which of these costs they already carry.
Check domain controller versions, the bind account's rights and the replication path with your Active Directory administrators before any rotation policy is written.
With OpenLDAP, your team controls the schema, the access rules and the directory data directly. That means your team decides which attribute holds each password and who may write to it, and the rotation plugin has to match those choices. Nothing in the directory is inherited from a vendor default, so the plugin's expectations need to be checked against your own configuration rather than assumed.
- Password attribute: Confirm which attribute the plugin writes and whether your schema exposes that attribute on the target object classes.
- Overlays: Confirm which overlays the plugin expects and which are loaded in your server, since an overlay can change how a password write is processed.
- Access controls: Access control lists must let the bind account write the password attribute on target entries and nothing broader.
- Transport security: Confirm the TLS configuration and certificate trust for the LDAP connection before rotation is enabled.
- Test tree: Run rotations against a non-production directory tree first to confirm the write path, the failure behavior and the recovery steps.
Check the schema, overlays and access controls against the plugin documentation before you grant the bind account any write access.
RACF is a mainframe security product, and the team that runs it is usually separate from the directory and platform teams. Support for RACF through the external LDAP secrets engine plugin, the connection method and the operational model all need confirmation from the plugin documentation and the mainframe team before scoping begins. Until those answers are in writing, the RACF approach is a set of questions to settle, not a design.
- Plugin support: Confirm in the plugin documentation that RACF is a supported target, and which RACF configurations and releases the plugin covers.
- Connection method: Confirm how OpenBao reaches the mainframe, including the interface, certificate requirements and network path.
- Operational model: Agree who owns the rotation schedule, the RACF user IDs and the recovery steps if a rotation fails partway through.
- Checkout behavior: Confirm how the plugin handles checkout and check-in of shared accounts, and who may override a checkout.
- Mainframe ownership: Identify the mainframe administrators who will approve the bind account and review changes, since the platform team cannot test RACF changes alone.
Obtain written answers on plugin support, connection method and ownership from the mainframe team before any scope or timeline is agreed.
Security settings that keep rotation from becoming a new exposure
A rotation engine holds privileged directory credentials and hands out shared passwords, so it becomes a target in its own right. The cards below cover the decisions that limit what an attacker or a careless operator can do with it, from the bind account and transport to checkout policy, logging, emergency response and host protection.
Least-privilege bind account
OpenBao binds to the directory with a service account that must be able to reset the passwords it manages and nothing more. Grant rights on the specific organizational units or OpenLDAP subtrees in scope, not domain admin membership. Test the account before go-live by attempting a rotation on a sacrificial test account and confirming that an attempt against an out-of-scope account fails. Ask your directory team which delegated permissions they will grant and who reviews them.
OpenBao auth docsLDAPS with certificate validation
Passwords must never cross the network in clear text, so the connection to each directory server should use LDAPS, and OpenBao should validate the server certificate against your internal CA chain. Confirm the certificate's subject names match the hostnames OpenBao uses, and plan for certificate renewal so a expired certificate does not stop rotations silently. Disabling verification to get a connection working is a finding in any review and should be treated as a blocker.
Checkout policy scoped to named callers
Shared accounts should be checked out only by named workloads or operator groups. Write policies that bind each library set to specific identities, using AppRole or Kubernetes roles for workloads and identity groups for people. Set check-out durations short enough that a stolen lease is of limited use, and confirm how the plugin behaves when a caller does not check the password back in. Review these bindings whenever a team changes ownership.
Audit logs for rotation and checkout
Each rotation and checkout should leave a record in OpenBao's audit device and a matching trail in the directory's own event logs, so the two can be reconciled. Ship both to your central log platform and alert on rotations outside change windows, checkouts from unexpected callers and failed binds. Confirm that the audit log captures the requesting identity and the account name without recording the password value itself.
Emergency rotation after a suspected leak
Write a runbook for the case where a checked-out password may have been exposed. It should name who can force an immediate rotation, how to revoke outstanding checkouts, which dependent services must be restarted with the new value, and how the directory account is verified afterward. Rehearse the runbook against a test account so the steps and permissions are proven before an incident. Confirm the exact revocation and check-in commands for your OpenBao version in the documentation.
Protecting plugin and node hosts
The OpenBao nodes and the plugin process hold the directory bind credential and every password in flight, so they carry the same sensitivity as a domain controller for these purposes. Restrict host access, keep the plugin binary under the same change control as OpenBao itself, and use integrity checks on the plugin. Because the LDAP secrets engine now ships as an external plugin, confirm how you register and pin its version and how you handle upgrades without a gap in rotation.
Common failures in directory password rotation and checkout
This table pairs common symptoms of OpenBao directory password rotation and checkout with their likely causes and the first fixes to try. Use it during build and after go-live to narrow a failure to the consumer, the directory, the plugin, the check-in workflow or the replication layer. Confirm exact error text against your own directory and OpenBao logs before acting on any fix.
| Symptom | Likely cause | Fix |
|---|---|---|
| Rotation succeeds in OpenBao but the application still fails to authenticate | The consuming service cached the old password, or its configuration was never updated with the new value | Confirm every consumer reads the password from OpenBao at start or on lease refresh. Plan a restart or reload step in the rotation runbook for consumers that cache credentials. |
| Bind failures after a directory certificate change | LDAPS trust chain in the OpenBao configuration still references the old CA or certificate, so the TLS handshake fails before the bind | Update the CA certificate chain used by the LDAP secrets engine configuration, then test a bind with a non-production account. Confirm the new chain covers the domain controller names OpenBao connects to. |
| Generated passwords rejected by the directory | The password generation settings do not meet the domain password policy for length, complexity or history, or a password filter on the domain controller refuses the value | Compare the policy's minimum length, complexity and history settings with the password generation settings in OpenBao. Align them, then test rotation against a sample account. |
| Plugin missing after an OpenBao upgrade or on one node | The LDAP secrets engine now ships as an external plugin, and the binary was not installed or registered on every node, or the upgraded node was not restarted with it | Check the plugin catalog and plugin binary on each node. Install the matching plugin version on all nodes before or alongside the core upgrade, then restart and confirm the mount works on each node. |
| Checkout lock never releases | The checked-out account was not checked in, the consuming job exited without check-in, or the check-in step ran under a different identity | Review check-in logic in each job, including failure paths. Confirm the check-in call uses the same token or identity that checked the account out. Set a review step for accounts that remain checked out after expected job duration. |
| Service outage after rotating an account | The account runs scheduled tasks, Windows services or application pools that hold the old password and were not on the dependency list | Before rotation, inventory every service, scheduled task and application pool that uses the account. Update or restart each dependency in the same change window, and confirm with the service owner before enabling automatic rotation. |
| New password accepted on some domain controllers but rejected on others | Replication delay between domain controllers, or clock skew on a server that authenticates against a controller not yet updated | Check directory replication health and time synchronization on domain controllers and the OpenBao host. Allow for replication to finish before the consumer retries, and confirm the time source on each system against your directory's standard. |
Why rotation breaks services and how to plan around it
Most password rotation outages come from inventory gaps, not from the rotation tool itself. A rotation engine changes a password on schedule, but it cannot know which services, scheduled tasks, pipelines or applications still hold the old value. Before the team sets any rotation interval for an Active Directory or OpenLDAP service account, it should list every consumer of that account: Windows services and their logon accounts, scheduled tasks, CI/CD pipelines, middleware, database connections, application configuration files and any application with an embedded credential. The embedded credentials are the usual failure point, because they rarely appear in any directory report and often sit in files that only the application owner knows about. Ask each owning team to confirm the list, then search configuration repositories and servers for the account name to find what the interviews missed.
Pilot rotation on low-risk accounts before touching anything that runs production traffic. Choose accounts whose consumers are fully documented, that have no interactive use and that have a clear owner who can respond during a change window. Use a pilot to confirm that the LDAP secrets engine can change the password in the directory, that the new value is stored where the team expects, and that each consumer picks up the change or can be updated quickly. Record how long each consumer took to recover and which ones needed manual steps. Only then should the team set a rotation interval for the wider set, and it should confirm the exact configuration keys and rotation options for its OpenBao version in the official documentation rather than relying on this page.
Shared account checkout changes the operator's workflow more than it changes the directory. Instead of knowing a shared password, an operator requests it from OpenBao, uses it for a defined task and checks it back in, which should trigger rotation so the old value stops working. Plan for the operator who needs the account during an incident and for the case where a checkout is never returned. Decide who may check out which accounts, how long a checkout lasts, how checkouts are logged for audit and what happens to a running job when its credential rotates mid-task. The cost of this inventory and pilot work depends on how many service accounts, consumers and owning teams exist in your environment, so estimate it from your own directory and configuration inventory and ask any implementation partner to base its quote on that count.
Questions teams ask before rotating directory passwords with OpenBao
What drives the cost and effort of rotating directory passwords with OpenBao?
The main drivers are the number of managed accounts, how many applications, services and scripts consume each account, the directory type (Active Directory, OpenLDAP or RACF), how closely the plugin version matches your OpenBao version, and how many testing windows the change needs. Each consumer that holds a copy of a password must be found and updated, so an unclear inventory adds the most work. Cost is quoted from a written scope that lists these items, the deliverables and the timeline before work starts. Ask any provider to show which consumers are included and how rollback is handled.
Can our own team rotate directory passwords with OpenBao without a partner?
Yes, if your team has working knowledge of both the directory and OpenBao. On the directory side, that means service account design, delegated permissions, password policy and change procedures. On the OpenBao side, it means configuring a secrets engine, policies, authentication, and the operational tasks around plugins and upgrades. Teams that lack one of these areas often use a partner for the design and first rollout, then run the platform themselves. Whichever path you choose, confirm the rotation design against the plugin documentation first.
How long does an Active Directory or LDAP password rotation project take?
Duration depends on the written scope: how many accounts and consumers are involved, how many directory types are in play, and how many change windows your operations team allows. A single service account pilot is much shorter than a rollout that touches every shared account in several domains. Ask for a timeline that separates inventory, a test domain or organizational unit run, production cutover and post-go-live review, since each stage depends on different people. A provider should not commit to a duration before the consumer inventory is complete.
What does DeployOpen need from our team to run this work?
You will need directory administrator access scoped to the work, a test domain or test organizational unit that mirrors production accounts, and agreed change windows for production rotations. Application owners must confirm which services read each account and how they retrieve new credentials. Security or compliance staff should review the access model and audit logging before cutover. Confirm these inputs in the statement of work so the schedule is not blocked by access requests.
Do we need extra Windows Server licenses to rotate Active Directory passwords?
The rotation work does not add a license to OpenBao, but the directory itself is a separate cost if you do not already run it. Active Directory Domain Services runs as a Windows Server role, and Microsoft's Windows Server 2025 pricing page says both Standard and Datacenter editions need a Windows Server Client Access License for each user or device that accesses the server. That page lists suggested prices of 1,176 US dollars for Standard and 6,771 US dollars for Datacenter for 16 core licenses, and notes that prices vary by region. Confirm your current licensing with your Microsoft reseller or licensing agreement.
Does the OpenBao LDAP secrets engine support RACF for mainframe accounts?
Confirm this against the plugin documentation before scoping any RACF work. The LDAP secrets engine is now shipped as an external plugin, and the supported directory types and their behavior should be checked for the exact plugin version you plan to run. If RACF is supported, you will also need a path to the mainframe security administration team and a test environment on the mainframe. If it is not, plan a separate approach for those accounts and do not assume they will rotate with Active Directory or OpenLDAP accounts.
What happens after go-live when we rotate directory passwords with OpenBao?
Ongoing work includes upgrading the external LDAP plugin when you upgrade OpenBao, reviewing which accounts rotate and how often, and retesting consumers after directory or application changes. A plugin that is not aligned with your OpenBao version can break rotation, so upgrades need the same testing discipline as the first rollout. Ask whether support covers plugin upgrades, rotation reviews and retests, and whether these run as a fixed-scope engagement or an ongoing retainer. DeployOpen offers ongoing support, upgrades and continuous testing as retainers.
How DeployOpen scopes and delivers OpenBao directory rotation
DeployOpen plans and builds OpenBao directory rotation inside your infrastructure, starting from a written scope that names each directory, service account and shared account in play. We test, document and hand over the result so your security and directory teams can review and operate it themselves.
How we scope
- We inventory the Active Directory, OpenLDAP or RACF targets, the service accounts and shared accounts to rotate, and who checks them out.
- We agree in writing which rotation intervals, check-out rules and approval steps apply to each account class before build starts.
- Engagements are fixed-scope, with deliverables and timelines confirmed in writing, and ongoing support is available as a retainer.
How we build
- We configure the LDAP secrets engine against your directory with a bind account scoped to the password operations it needs.
- We confirm the external plugin is installed and its version matches your OpenBao release before enabling it in any environment.
- We test rotation, check-out and check-in on non-production accounts, including failure paths where a rotation does not complete.
How we hand over
- We deliver a written design covering account ownership, policy paths, rotation schedules, audit log locations and recovery steps.
- We document how applications and operators retrieve current credentials, so consumers know how to handle a password change.
- We walk your administrators through daily operations and provide a retest plan for changes to directory or OpenBao configuration.
How we support
- Retainers cover plugin and OpenBao upgrades, rotation failures, directory changes and periodic review of account and policy settings.
- We can rerun tests after upgrades or directory changes so you have current evidence of how rotation behaves.
- We confirm with your directory and compliance teams which rotation evidence your reviewers expect before we define the support scope.

