Keycloak vs OpenLDAP for PCI DSS

Keycloak handles SSO, MFA and login controls for applications that touch cardholder data. OpenLDAP serves a directory to LDAP-only systems over TLS with access rules and logging overlays. Neither publishes a PCI DSS attestation, so the operator carries scope.

On this page

Keycloak vs OpenLDAP for PCI DSS: which one fits your scope

If your PCI DSS scope has to show control over two things, who signs in to cardholder data systems and who can read the directory, the choice between Keycloak and OpenLDAP depends on which question your assessor is asking. Keycloak fits when the question is login control for web and application access. Its documented MFA options, brute force lockout and per-realm TLS settings map to the access control and transmission security work you will need to document. OpenLDAP fits when the question is a directory served to systems that speak only LDAP. There, your evidence centers on TLS configuration, access rules and the logging overlays you enable. Many cardholder data estates need a decision on both, because legacy applications that read the directory and the SSO layer for web apps often run side by side.

This page covers only the PCI DSS angle. The general Keycloak vs OpenLDAP comparison, which covers what each product stores and serves, sits on its own page, so read that first if you are still choosing a product. Neither side publishes a PCI DSS attestation. The project behind Keycloak publishes none, and OpenLDAP has no vendor-operated service and no Attestation of Compliance, so the operator carries scope either way. Your team has to decide which components sit in the cardholder data environment, which accounts can administer them and where their logs go. Map your evidence against the PCI DSS standard, where v4.0.1 is the only active version.

Before you choose, run three checks. List every system that authenticates users to cardholder data, list every system that reads the directory, and confirm with your assessor which of those components count in scope. For Keycloak, record the MFA method, lockout settings and TLS configuration for each realm that serves in-scope applications. For OpenLDAP, record whether TLS is enforced, which access rules restrict reads and changes, and which logging overlay you enable and what it captures. Ask your assessor early how they want that evidence packaged, because the format decides how much of it you will have to rebuild later.

Where the PCI DSS boundary sits when Keycloak reads users from OpenLDAP

This illustrative diagram shows one possible layout of a cardholder data environment. The QSA decides the actual scope. The boundary encloses systems the organization runs: Keycloak, OpenLDAP, the LDAP-only applications and the log store. Browser and app logins reach Keycloak over TLS, and Keycloak enforces MFA before it issues a session. Keycloak reads user records from OpenLDAP over TLS, while LDAP-only applications query OpenLDAP directly, so the directory sits on two paths. Check that both hand-offs are encrypted and that logs from both systems reach the log store. Evidence for the assessor leaves the boundary through a separate path.

Illustrative layout: systems the organization runs sit inside the boundary, and evidence leaves it.

What PCI DSS v4.0.1 asks of an identity and SSO platform

PCI DSS v4.0.1 is the only active version of the standard because v4.0 was retired on 31 December 2024. The v4.0.1 revision was published on 11 June 2024 with no added or deleted requirements. The date that matters most for identity work is 31 March 2025, when 51 of the 64 new v4.0 requirements took effect. Before that date they were best practices that could be marked not applicable, so any access design written with that earlier status in mind should be checked again. The standard applies to entities that store, process or transmit cardholder data, and to any system that could affect the security of the cardholder data environment. An identity server that authenticates people into that environment, or holds credentials for it, can therefore be in scope even if it never sees a card number. The PCI Security Standards Council's PCI DSS page is the starting point for the full text.

Four requirement areas shape the identity design. Requirement 7 limits access to what each role needs. Requirement 8 covers identifying users and authenticating them, including a unique ID for every account, multi-factor authentication for access into the cardholder data environment, and protection of passwords and other authentication factors against guessing and theft. Requirement 4 covers encrypted transmission of account data and credentials over open networks, and Requirement 10 covers logging access and reviewing those logs. Periodic review of accounts and their privileges also sits within the access requirements. Map each area to a specific setting. In Keycloak, that means the realm's MFA configuration, brute force lockout settings and per-realm TLS settings, which you must enable and evidence yourself. In OpenLDAP, that means TLS configuration, slapd access rules and the logging overlay, plus a documented process for reviewing entries. Neither platform decides compliance for you.

The assessed entity carries PCI DSS scope, so the platform vendor cannot hand you a compliance status. Neither the Keycloak project nor OpenLDAP publishes a PCI DSS Attestation of Compliance, so an assessor will look for evidence from your own environment: exported realm and MFA settings, TLS configuration files, slapd access rules, sample log entries showing authentication and privilege changes, and signed records from periodic account reviews. Ask your QSA which sub-requirement numbers apply to your identity platform, because the wording and numbering of v4.0.1 controls are easy to misremember. Confirm early whether the identity server sits inside the cardholder data environment or only connects to it, since that decides how much of this evidence you need. Run one full account review cycle before the assessment window opens so the records already exist when the assessor asks for them.

How Keycloak and OpenLDAP meet PCI DSS identity controls, as documented

This table sets out the identity controls a PCI DSS assessment usually examines and what each platform's documentation supports for them. Read each row as a starting point: the documented feature is the input, and the cell names what you still need to confirm in your own build. Neither platform carries PCI DSS scope for you, so the main takeaway is that Keycloak's documentation covers more of the authentication controls directly, while OpenLDAP leaves more of those controls to your design.

Requirement areaKeycloak as documentedOpenLDAP as documented
Authentication factors (Requirement 8)MFA options are documented for user logins; confirm which factors each realm enforces, including admin console sign-in.OpenLDAP's documentation does not describe MFA; confirm how a second factor would sit in front of the directory.
Lockout after failed logins (Requirement 8)Brute force lockout is documented; confirm the thresholds in each realm match your password policy.Account lockout is not documented here; confirm what the directory enforces and whether a password policy overlay is needed.
Transmission encryption (Requirement 4)TLS settings are configured per realm; confirm each realm and every internal hop uses encrypted connections.TLS is supported for slapd; confirm protocol versions and cipher choices against your own Requirement 4 design.
Access control (Requirements 7 and 8)Fine-grained authorization services are documented; confirm least-privilege admin roles and who can change realm settings.Access rules control who can read and write entries; confirm the rule set is written down, tested and reviewed.
Audit logging (Requirement 10)Confirm which admin and login events are recorded, where they go, and how long they are kept.Logging overlays are documented; confirm what they capture, where logs go, and that they reach your central log store.
Release and patch support (Requirement 6)Keycloak 26.8.1 was released October 13, 2026; four planned minor releases a year, with breaking changes opt-in since 26.0.OpenLDAP 2.7.1 is the feature line and 2.6.15 the long term support line; confirm which one you run and its patch window.
Vendor evidence (Requirement 12.8)No PCI DSS attestation is published by the project; the operator carries scope and must produce its own evidence.No PCI DSS Attestation of Compliance and no vendor-operated service; the operator carries scope and evidence.
Database and data locationProduction needs a relational database such as PostgreSQL 14 to 18; you choose where it runs and where backups sit.Data lives in the directory back end you host; with no vendor-operated service, you set location and backup scope.

What the vendor covers and what your team still configures

The four cards separate what the software project publishes from what your deployment, your directory controls and your shared PCI DSS controls must evidence. Read them in order, because each card names the evidence an assessor will ask for. Neither vendor issues an attestation, so the compliance claim is yours to build and defend.

The Keycloak project

The Keycloak project publishes no PCI DSS attestation, so any compliance claim about Keycloak has to come from your own assessment of how you configured it. The documented MFA options, brute force lockout and per-realm TLS settings can support access control and transmission security requirements, but you must enable and verify each one. Minor releases follow a published cadence and can make breaking changes opt-in, so every upgrade needs a test cycle and a dated record that your configuration was reviewed against the new version.

Current release
26.8.1
Release update policy

Your Keycloak deployment

Production Keycloak runs on a relational database you select, and you own the database, certificates, admin accounts, backups, patch windows, log routing and the scope statement. The default dev-file database is not suitable for production, so record the engine and version, who can reach it and how connections are encrypted. Admin accounts need named owners and MFA, and the scope statement must list every component that stores, processes or transmits cardholder data, including the database and the log pipeline.

PostgreSQL versions supported
14 to 18
Keycloak database guide

OpenLDAP and your controls

OpenLDAP has no vendor-operated service and no PCI DSS Attestation of Compliance, so the vendor supplies software only. You own the TLS configuration, the access rules, the logging overlays and the password and lockout behavior, and you verify that behavior by testing it against your own password policy. Keep test records for each control, including how the logging overlays are configured and where their output is routed for review.

Current LTS release
2.6.15
OpenLDAP security guide

The shared responsibility layer

The scope decision belongs to your Qualified Security Assessor (QSA), and it shapes everything below it. Ask the QSA which systems fall inside the cardholder data environment before you design network segmentation, since an identity server that authenticates access to cardholder data can itself be in scope. Then write the policies for account management, run periodic access reviews and rehearse incident response for a compromised identity. Keep dated records of each step, because those records are what an assessor reviews.

Active PCI DSS version
4.0.1
PCI SSC standard page

Why the decision turns on who signs in and who reads the directory

Start with two questions, because the answers point to different components. The first is whether the goal is to control user sign-in to applications that store, process or transmit cardholder data. If so, Keycloak carries the login controls: its documented MFA options, brute force lockout and per-realm TLS settings can support the access control and transmission security requirements. The second is whether the goal is to serve an LDAPv3 directory to systems that can only speak LDAP. If so, OpenLDAP is the component in question, and the operator supports the relevant controls with TLS, access rules and the logging overlays. Many organizations will answer yes to both. Write the two answers down for each application before you choose a product or a design.

Keycloak can federate users from an LDAP or Active Directory directory, so OpenLDAP can stay the store of record while Keycloak handles sign-in, MFA and lockout in front of cardholder applications. That split is common, but it also adds scope. Each added component brings its own hardening baseline, log sources and patch cycle. Keycloak in production also needs a relational database, with PostgreSQL 14 to 18 among the supported options, so the database, its backups and its logs join the assessed environment. OpenLDAP keeps its own host, certificates, overlays and logs. Ask your QSA to confirm in writing which of these hosts and log stores count as system components before the design is locked.

Ask the same questions of the directory's consumers. An LDAP-only system that reads OpenLDAP directly may not need Keycloak at all, while an application that already sends users through a web login may gain little from keeping LDAP in its sign-in path. Keycloak's LDAP federation is described in the Keycloak Server Administration Guide, and the full feature analysis sits on the general Keycloak vs OpenLDAP page, so this section does not repeat it. Confirm one point before you commit: neither project issues a PCI DSS Attestation of Compliance, so the evidence for each control must come from your own configuration, logs and test results. Build a short register that lists each component, its owner, its patch source and the log it writes to.

Evidence a QSA asks for in a Keycloak or OpenLDAP PCI DSS review

Keycloak evidence centers on the realm, because login behavior and TLS are configured per realm and an export captures them in one place. Keycloak 26.8.1 is the current release line, so version records should show which line runs in production and when it changed.

  • Exported realm settings: Export each realm's configuration, including TLS settings, and keep dated copies from before and after each change. Confirm how your version handles secrets in an export and store any secrets under your own key management.
  • MFA configuration and enrollment policy: Record which second factors each realm accepts, which roles must use them, and who can enroll or reset a factor. Keep the help desk procedure for a lost device.
  • Brute force lockout settings: Capture the lockout thresholds, wait periods and the realm each one applies to, with a dated test showing a lockout in a non-production realm.
  • Admin account list and access review: Export the list of administrative accounts and their roles, with the most recent access review and the reviewer's sign-off.
  • Database and version records: Document the production database engine and version (Keycloak requires a relational database in production, as described in the database guide), plus version records against the 26.8.1 line and a change ticket for each upgrade.

Check that every export carries the server version and date it came from, and that the change tickets match the dates in those exports.

Configuring the chosen side for PCI DSS identity controls

This sequence takes the chosen platform from scoped design to evidence an assessor can review. Steps that apply to one side only are marked, and the operator owns the configuration, logging and evidence throughout. The sequence ends with a retest so open findings are closed before the assessment begins.

  1. Define the cardholder data environment and identity flows

    Start by defining the cardholder data environment (CDE) and listing every system, administrator and application that authenticates into it. Map the identity flows that touch it: user sign-in, administrator access, service accounts, and any directory sync or federation link between Keycloak and OpenLDAP. The operator's assessment lead, working with the platform team, produces a written scope and data flow diagram. This step is done when every identity flow in the diagram has a named owner and a named control, and the assessor has agreed the scope in writing. Both sides need this step.

  2. Pin the release line and supported database

    Choose the release line before any configuration starts. On the Keycloak path, the current release is 26.8.1, and production requires a relational database. The Keycloak database guide lists PostgreSQL 14 to 18, MariaDB, MySQL, Microsoft SQL Server, Oracle Database and Amazon Aurora PostgreSQL, and states that the default dev-file database is not suitable for production. On the OpenLDAP path, choose between the long term support release 2.6.15 and the feature release 2.7.1, based on how quickly your patch process can follow updates. Record the chosen versions and database in the change record. This step is done when the change record matches the vendor's current documentation.

  3. Enable MFA and brute force lockout per realm

    Keycloak path only. In each realm that holds cardholder-facing or administrative accounts, enable the multi-factor options described in the Keycloak Server Administration Guide, and turn on brute force detection with lockout thresholds that your access policy defines. Realm administrators apply the settings, and the platform team exports each realm configuration to version control. This step is done when a test account is locked after the configured failures and the MFA prompt appears at sign-in. Keycloak's documented options can support PCI DSS access control, but the project publishes no PCI DSS attestation, so the operator still owns the control design and the evidence.

  4. Set per-realm TLS and verify endpoints

    Keycloak path only. Configure TLS for each realm as the Keycloak Server Administration Guide describes, so that sign-in, token and administrative traffic is encrypted on every realm endpoint inside the CDE. Use certificates issued through the organization's own certificate process, and remove any plaintext listener the platform team does not need. Verify each endpoint from an approved test host with a command such as openssl s_client or an external scanner, and confirm the protocol versions and cipher settings match the organization's transmission security standard. This step is done when every realm endpoint passes the check and the output is saved to the evidence folder.

  5. Harden OpenLDAP TLS and access rules

    OpenLDAP path only. Following the security chapter of the OpenLDAP 2.6 Administrator's Guide, enable TLS for client connections, refuse simple binds that are not protected by TLS, and write access control lists so that only named service accounts can read password-related attributes and only directory administrators can write entries. Confirm each option against the guide for the release line you chose before you apply it. This step is done when an anonymous search is refused, a cleartext bind is refused, and a test account can read only its own entry. Keep the slapd configuration and ACL files under version control.

  6. Configure TLS for LDAP federation

    Applies only where OpenLDAP remains the directory and Keycloak federates users from it. In the Keycloak LDAP user federation provider, configure the connection to use TLS, using the connection options described in the Keycloak Server Administration Guide, and confirm that the bind account has read access only to the attributes federation needs. Add the OpenLDAP certificate authority to the Keycloak truststore. This step is done when the provider's connection test succeeds over TLS and network capture confirms that no credentials cross the link between the two servers in cleartext. Record the test output for the evidence pack.

  7. Enable logging overlays and route logs

    On the OpenLDAP path, enable the logging overlays described in the OpenLDAP 2.6 Overlays chapter so that directory changes are recorded. On the Keycloak path, enable event and admin event logging for each realm in scope. For both sides, forward logs from slapd, Keycloak and any reverse proxy or load balancer to the organization's central log store, and apply the retention period set by the organization's policy. Test by making a failed sign-in and a directory change, then confirm both events arrive in the log store with timestamps and user identifiers. This step is done when the log store owner confirms receipt in writing.

  8. Capture evidence and retest before assessment

    Collect the evidence the assessor will request: the signed scope document, versioned configuration exports, realm MFA and lockout settings, TLS scan results, ACL and TLS test output, federation test results, and log samples showing events are received. Then retest the findings from the security test against the final configuration. DeployOpen can prepare these controls, run the tests and retest, but the independent assessor issues any attestation, and the organization owns the evidence. This step is done when every control in the scope document links to a dated artifact, each retest finding is closed or formally accepted, and the assessor has received the pack.

Questions buyers ask before hiring help with PCI DSS identity work

What makes a PCI DSS identity project take more effort?

Five factors drive most of the effort: how many identity flows touch the cardholder data environment, how many systems federate with each other, how much existing MFA covers administrative access, how mature your logging is, and how much time your QSA needs for review. Each identity flow adds its own access rules, MFA decision and evidence, for example a staff login to a payment administration console or a service account that reads from the directory (illustrative). Each federated system adds a trust relationship that must be documented and tested. MFA gaps mean new rollout work, and weak logging means you build audit trails before you can show them. Ask how much QSA time the proposed scope assumes, because review availability sets the pace of the project.

Can our own team handle PCI DSS identity work without outside help?

Yes, if your team already has strong identity engineering skills and someone who knows PCI DSS well enough to map each control to evidence. Engineers configure the directory, SSO and MFA settings, while the compliance owner confirms the scope and reviews the evidence. Outside help fits where those skills are missing, where you want an independent review of the design before the assessor sees it, or where the deadline leaves no room for trial and error. DeployOpen plans, implements, hardens and documents self-hosted platforms inside your own infrastructure, and it prepares systems and evidence for assessments. It does not issue audit reports, attestations or certifications, so your assessor makes the final call.

What do we need to provide before an engagement starts?

You need to provide four things, and the written scope should list each one before work starts:

  • Current diagrams of the cardholder data environment showing where identity systems sit and which networks reach them
  • Admin accounts with rights to change directory, SSO and MFA settings in test and production
  • Your change management process, including approval steps and maintenance windows
  • A named contact at your QSA who can confirm the evidence they expect

Gaps in any of these usually push dates back, so agree access and review slots at the start. Most engagements are fixed-scope, so the list also defines the boundary of the work.

How long does a PCI DSS identity engagement take?

The duration depends on the scope, so ask for a written timeline in the proposal, with milestones for design, implementation, testing and evidence collection. Ask which dates depend on your team, such as diagrams, admin access and change windows, and what happens to the schedule if those arrive late. Ask how each effort driver changes the plan: identity flows, federated systems, MFA coverage, logging maturity and QSA availability. Because most engagements are fixed-scope, the timeline should be agreed in writing before work starts, alongside the deliverables. Treat any date without a named dependency as a planning guess.

Does choosing Keycloak or OpenLDAP make us PCI DSS compliant?

No. Neither product comes with a PCI DSS attestation of compliance, and only your assessor can decide whether your environment meets the requirements. Keycloak offers MFA options, brute force lockout and per-realm TLS settings that can support access control and transmission security requirements, while OpenLDAP relies on TLS, access rules and logging overlays that your team configures. Both still need your own policies, configuration evidence, access reviews and logs. Assess against PCI DSS v4.0.1, the only active version, and map each identity control to the requirement it supports.

What does adding both Keycloak and OpenLDAP do to our PCI DSS scope?

Adding both brings each one into scope if it stores, processes or transmits cardholder data or could affect the security of the cardholder data environment. The test depends on what each system does, as set out in the PCI SSC standard page. Connecting Keycloak to OpenLDAP as a user federation source means the directory, the SSO server and the link between them all need documented controls and testing, because a directory problem can affect logins. Document why any out-of-scope system is excluded. Ask your QSA to confirm the boundary in writing before design starts. A quote follows from the written scope, and DeployOpen does not publish a price list.

How DeployOpen prepares identity systems for a PCI DSS assessment

DeployOpen plans, implements, hardens and documents self-hosted identity platforms inside your own infrastructure, so your compliance and security teams can review them directly. For Keycloak or OpenLDAP in scope for PCI DSS, the work centers on the controls you operate, such as access rules, TLS, logging and, for Keycloak, MFA and brute force lockout. Neither platform carries a PCI DSS attestation of its own, so the evidence we prepare supports your assessment without replacing it.

How we scope

  • The written scope lists each Keycloak realm or OpenLDAP directory and the applications that depend on it.
  • Fixed-scope engagements agree deliverables and timelines in writing before work starts, so the boundary is clear early.
  • Scoping confirms with your assessor which PCI DSS v4.0.1 requirements the identity platform must evidence before design starts.

How we build

  • We configure Keycloak MFA, brute force lockout and per-realm TLS settings against the access and transmission controls in scope.
  • For OpenLDAP, we set TLS, access rules and the logging overlays that support your own PCI DSS controls.
  • Each build step is tested, and we document the configuration so an assessor can trace it to a control.

How we hand over

  • The handover pack documents configuration, access model, TLS settings, logging and backup procedures for each platform in scope.
  • DeployOpen prepares the evidence, while your independent assessor issues any report or attestation.
  • Your team reviews the configuration and documentation before sign-off, so responsibility for each control is clear.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the initial engagement ends.
  • Keycloak plans four minor releases a year, so upgrades need a standing test cycle in your change process.
  • Retesting after each upgrade or configuration change keeps the evidence current for the next assessment cycle.

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.