Keycloak vs OpenLDAP for SOC 2 and ISO 27001 audits: which side fits
Choose Keycloak when application sign-in, MFA and admin events are the evidence you must show. Choose OpenLDAP when the directory is the system of record and its change and access logs are the evidence. This page covers only the compliance angle. The general Keycloak vs OpenLDAP comparison has its own page. Neither product carries a SOC 2 report or an ISO certificate for the software. Independent auditors issue SOC 2 reports, and accredited certification bodies issue ISO 27001 certificates, after testing your implementation against the criteria or controls in scope. The outcome therefore turns on two things: your audit scope (which systems, which Trust Services Criteria categories or which ISO 27001 scope statement) and where identities already live today.
With Keycloak, the evidence is mostly what the sign-in path produces. The Keycloak Server Administration Guide documents auditing for user events and admin events, which are the main sources of evidence for sign-in and configuration changes. Pair that with the two-factor options the guide lists, including passkeys, recovery codes, TOTP/HOTP and WebAuthn, and with brute force protection that applies temporary and permanent lockout. Before the audit window opens, turn auditing on, test that a sample sign-in and a sample admin change both appear, and confirm where the events are stored, how long they are kept and how an assessor can export them. If Active Directory or LDAP still holds the accounts, that directory's own change records become part of the joiner and leaver evidence, so plan for both sources.
With OpenLDAP, the evidence is the directory itself. The OpenLDAP 2.6 Administrator's Guide on overlays describes the auditlog overlay, which records changes on a backend to a file as standard LDIF, and the accesslog overlay, which records accesses in another database that you can review with LDAP queries. Both must be enabled on the right backend and given a retention plan, including file rotation, database size and copies to your log platform. The ppolicy overlay follows draft-behera-ldap-password-policy-09, an expired draft that slapd still implements, so note that for any assessor reviewing password rules. OpenLDAP is a directory, so MFA and application sign-in events must come from another component. Confirm that component with your auditor before you commit, because OpenLDAP alone is unlikely to answer a request for sign-in evidence.
Choosing by audit scope: four situations
The right pairing depends on which systems sit inside the audit boundary and where the authoritative user record lives. Each card names a scope, the platform that leads it and the first artifact an assessor is likely to request. Confirm the boundary with your assessor before you build the evidence set, because a single web application can change the answer.
SAML or OIDC applications with MFA
Choose Keycloak when web and API applications need SAML or OpenID Connect sign-in, with multi-factor authentication enforced at the identity layer. Keycloak's Server Administration Guide documents auditing of user events and admin events, which cover sign-ins and configuration changes. The first artifact an assessor will likely ask for is admin event records showing who changed clients, authentication flows and MFA policy, along with the audit settings that produced them. Check that event retention and export cover your evidence period, and confirm the brute force lockout settings with your assessor.
Keycloak server guideLegacy LDAP-only services
Choose OpenLDAP when legacy services can only bind to LDAP and the directory is already the system of record for accounts and groups. OpenLDAP 2.6 offers the auditlog overlay, which records changes to a backend as standard LDIF, and the accesslog overlay, which stores access history in another database you can query with LDAP. The first artifact an assessor will likely ask for is auditlog or accesslog output for a sample change, such as a group membership update. The ppolicy overlay follows an expired draft, so describe its password rules to your assessor in those terms and confirm they accept them.
OpenLDAP overlays chapterActive Directory estate with Keycloak in front
Choose both when Windows or Active Directory holds the users and passwords, and Keycloak should be the sign-in front end for SAML and OIDC applications. Keycloak's LDAP and Active Directory user federation reads the directory, so the directory stays the source for accounts while Keycloak adds its own sign-in controls and events. The first artifact an assessor will likely ask for is the federation configuration export, with attribute mappings and sync settings, plus a test showing that a disabled directory account can no longer sign in. Confirm with your directory team how deprovisioning reaches Keycloak in your environment.
Keycloak server guideNarrow scope inside the directory
Choose OpenLDAP alone when the audit stays inside the directory: who holds an account, which groups they belong to, and how passwords are governed. This scope has no SAML or OIDC application, no web product admin console and no SSO log inside the boundary. Confirm that boundary with your assessor before you decide, because adding any web application usually brings the questions from the first card into scope. The first artifact an assessor will likely ask for is a user access review export from the directory, listing accounts, group membership and the password policy in force.
What SOC 2 and ISO 27001 ask of an identity platform
SOC 2 is judged on the controls you run, not on the features of the software you bought, so your identity platform is one part of a system that an auditor will describe and test. SOC 2 examinations use the AICPA's 2017 Trust Services Criteria, in the version with revised points of focus published in 2022. The security category is built from common criteria CC1 to CC9, which apply to every SOC 2. The other four categories (availability, processing integrity, confidentiality and privacy) add criteria only when you put them in scope, so settle that scope before you choose a platform. Most identity and access controls sit in the common criteria, chiefly the logical access group in CC6, which covers how users are identified, authenticated, granted access and removed. A Type 1 report describes your system and whether control design was suitable as of a single date. A Type 2 report adds an opinion on operating effectiveness over a period, so it is the one that depends on your daily identity operations.
For a Type 2 engagement, identity platforms are often tested on evidence from the middle of the period, not from go-live day. Logs must exist for the whole window. On the Keycloak side, confirm that event auditing is enabled for both user events and admin events, since these are the main records of sign-ins and configuration changes, and that brute force lockout, two-factor settings and OTP or WebAuthn policy changes are visible in what you export. On the OpenLDAP side, the auditlog overlay can write every change on a backend to a file as LDIF, and the accesslog overlay can keep access records in a separate database that you query with LDAP searches. Confirm that each overlay is configured in your deployed build, because the evidence exists only where it was switched on. Then confirm where logs are stored, how long they are kept and whether someone can produce a sample for any date in the window. The auditor samples your deployed system, not the vendor's documentation, so a feature page does not prove your configuration.
ISO/IEC 27001:2022 works differently: it asks for an information security management system, and Annex A lists 93 controls in four themes: organizational, people, physical and technological. The 34 technological controls carry most of the identity, logging and authentication topics, so that is where your Keycloak or OpenLDAP evidence will be assessed. ISO does not certify organizations. Accredited certification bodies do, and they audit against the standard under their own accreditation rules. Under those rules, a certification cycle runs three years, with at least one audit in every calendar year, either surveillance or recertification. The identity evidence therefore has to stay current in years two and three, not only at the first audit. Before you commit to a design, ask your certification body which scope they will assess, how they sample records and whether they accept your configuration evidence for the technological controls.
Requirement by requirement: Keycloak and OpenLDAP as documented
This table sets each identity requirement an auditor is likely to raise against what the Keycloak and OpenLDAP documentation says about it. Read each row as a starting point for your own design: the cells state documented features, and the confirm notes mark where your environment, your MFA design or your evidence process still has to be checked. The main takeaway is that Keycloak documents the sign-in controls and admin auditing directly, while OpenLDAP documents logging and password policy as building blocks that you must assemble and test.
| Requirement area | Keycloak as documented | OpenLDAP as documented |
|---|---|---|
| Audit trail of sign-in and configuration changes | Admin and user event auditing is documented for sign-in and configuration changes. Confirm retention and export to your SIEM. | auditlog overlay writes changes to a file as standard LDIF; accesslog records access in a queryable database. |
| Strong authentication | Passkeys, recovery codes, TOTP/HOTP and WebAuthn, with OTP policy settings. Confirm which methods your audit scope allows. | A directory does not provide MFA itself. Confirm which system enforces MFA for each application that binds to it. |
| Account lockout | Brute force protection with temporary and permanent lockout of accounts. Confirm thresholds and the account reset process you will document. | Password policy via the ppolicy overlay, which follows an expired draft that slapd still implements. Document and test the settings. |
| Where identities live and how they connect | Federates users from LDAP or Active Directory, and brokers logins to external OIDC or SAML providers. Confirm which system stores passwords. | The directory itself, serving LDAPv3 clients. Confirm which applications bind to it directly and which go through an SSO server. |
| Where data sits | Self-hosted, so location follows your deployment. Production needs a relational database, such as PostgreSQL 14 to 18. Confirm where backups and keys are held. | Self-hosted, so location follows your deployment. Confirm where the directory database, the overlay logs and the accesslog database are stored. |
When one audit scope needs Keycloak and OpenLDAP together
The common pattern is a directory that holds the identities, with Keycloak handling sign-in for the applications. OpenLDAP or Active Directory remains the place where accounts are created and disabled, and Keycloak reads those accounts through LDAP user federation when someone signs in. For the audit, this splits the evidence in two. Sign-in events and configuration changes are recorded in Keycloak's user events and admin events, while account creation, group changes and password policy changes are recorded wherever the directory is run. An assessor will expect both trails to cover the same user, and the first question will be which system is the source of truth for a user's access and how quickly that access is removed when someone leaves.
Two systems also mean two sets of administrators, and the access review has to cover both. Directory administrators control every account that Keycloak trusts, while Keycloak realm administrators can change roles, clients and authentication flows. Offboarding must be tested along the sign-in path, not just in the directory, so confirm whether existing Keycloak sessions end when a directory account is disabled and how long they last. On the OpenLDAP side, the 2.6 overlays documentation describes the auditlog overlay, which records changes to a backend as LDIF, and the accesslog overlay, which stores access records in a separate database that can be queried with LDAP. Confirm that both are enabled, that the logs leave the directory host, and that someone outside the directory team can read them. OpenLDAP 2.6 overlays lists the options for each overlay.
A single system can be the right answer. If the in-scope applications authenticate directly against LDAP, and the team already runs the directory with documented change control, periodic access reviews and retained logs, adding Keycloak creates a second place to evidence without closing a gap that exists today. Decide the design before the audit period starts: record the system of record for each user population, the process that removes access and the time limit for doing so, then test that process with a sample of leavers. Ask the auditor which population they plan to sample. A federated account that was created in the directory but first used in Keycloak will need evidence from both systems, and that is easier to assemble when the design was written down before the period began.
Evidence an assessor asks for, and where each side produces it
Keycloak produces most of its audit evidence inside the product, so the work is to switch on the right records, keep them for the whole audit window and export them before they expire. The Keycloak Server Administration Guide documents configuring auditing for user events and admin events, which are the main sources of evidence for sign-ins and configuration changes. An assessor will usually ask for both record types across the full period, so a single export taken on the day of the review rarely answers the question.
- Admin and user event records: Export admin events and user events from the configured auditing for the audit window, with the realm and the date range visible in the export.
- MFA and lockout configuration: Export or screenshot the passkey, recovery code, TOTP/HOTP and WebAuthn settings, the OTP policy and the brute force protection settings, each dated and tied to the realm.
- Realm and client configuration history: Keep dated exports of realm and client settings. The current state alone does not show what a setting was on a given date, and that is often the question an assessor asks.
- Retention setting: Record the event retention or expiration setting in effect during the window and confirm it covers the full period, or export events to storage you control before they expire.
Check that each export carries a date, the realm name and the Keycloak version, and that the retention setting was in force for the whole period.
OpenLDAP keeps its evidence in overlays that you enable and configure yourself, so evidence exists only for the period when those overlays were active. The OpenLDAP 2.6 overlays chapter describes the auditlog overlay, which records changes on a backend database to a log file as standard LDIF, and the accesslog overlay, which records accesses in another database that you can query with LDAP searches. Confirm the start date of each overlay, because the assessor will ask for records across the full window and no record exists for a period before the overlay was enabled.
- Auditlog LDIF records: Keep the LDIF change log from the auditlog overlay with its storage location and rotation schedule documented for the whole window.
- Accesslog entries: Keep the accesslog database and confirm you can run queries over the audit window that show who read or changed which entries.
- Password policy configuration: Export the ppolicy overlay settings and write down the password rules they enforce. The overlay follows draft-behera-ldap-password-policy-09, an expired draft that slapd still implements, so your written rules should state that basis plainly.
- Overlay configuration under version control: Keep the slapd configuration and overlay settings in a version control system so each change has an author, a date and a diff.
Check that you can pull an accesslog result for a date inside the window and that the documented password rules match what slapd enforces, tested on a copy of the server.
Several of the strongest artifacts come from your own processes, not from the platform, and the assessor will read them alongside the product records. Access reviews, change management, upgrade tracking and restore testing are run by your team or your provider, and they must use the same identifiers and dates as the platform exports. The same process applies whether you choose Keycloak or OpenLDAP, so what changes is the set of records each side hands you to link.
- Access reviews: Periodic reviews of who holds directory administrator and Keycloak administrator rights, with the reviewer, the date and the decision recorded.
- Change tickets: A ticket for each configuration change to Keycloak or slapd, linked to the exported diff or the version control commit.
- Upgrade records: Record the version in use against its release line. Keycloak 26.8.1 is the current release, and the project plans four minor releases a year. OpenLDAP's current lines are 2.7.1 (feature) and 2.6.15 (long term support), so record which line you run and confirm its support window with the project.
- Backup and restore test records: For the Keycloak database and the OpenLDAP data, record each restore test with its date, its scope and its result.
- Evidence index: A list that maps each control, such as the SOC 2 common criteria for logical access (CC6) or ISO/IEC 27001 Annex A control 8.15 on logging, to its artifact, owner and storage location.
Check that a sample of changes can be traced from the ticket to the commit, the export and the upgrade record, and that the evidence index is current.
How sign-in and directory events reach the audit file
The diagram starts with a user signing in to an application through Keycloak, which enforces MFA and writes admin and user events to its configured store. Keycloak reads user records from OpenLDAP through federation, and OpenLDAP writes change records through the auditlog overlay and access records through the accesslog overlay. Keycloak, OpenLDAP and both overlays sit inside your network boundary and are run by you. The evidence store is yours too: copies of all three log sources land there, with retention set to cover your audit window, and the assessor reads from it. Protect that store with restricted write access and back it up, and confirm each copy job in your own environment.
Sign-in and directory logs converge in one evidence store you control.
Keycloak vs OpenLDAP for SOC 2 and ISO 27001 audits: setting up the evidence trail
This sequence configures Keycloak and OpenLDAP so that each sign-in, administrator change and access review leaves a record an assessor can sample. Agree the scope in writing first, then configure both systems and file the records that prove the settings. Each step names the output that closes it.
Agree audit scope and controls in writing
Ask your assessor to confirm in writing which SOC 2 criteria or ISO/IEC 27001 Annex A controls apply to the Keycloak and OpenLDAP services. The assessor's list decides which logs, settings and reviews you must produce later. Your team owns the decision on system boundaries, and DeployOpen can help map the setup to that list. This step is done when the scope document names both systems, their owners and the evidence each in-scope control requires.
Move Keycloak onto a supported production database
Keycloak needs a relational database in production. Use one of the supported options in the Keycloak database guide, such as PostgreSQL 14 to 18, and do not run production on the default dev-file database. Set automated backups and run restore tests into a separate environment, recording the date and result of each test. Confirm backup retention and encryption settings with your database team and your assessor. This step is done when a restore test succeeds and the record is filed with the scope document.
Enable Keycloak user and admin event auditing
Turn on Keycloak auditing for user events and admin events, following the Server Administration Guide. User events capture sign-in activity and admin events capture configuration changes, which are the main sources of audit evidence on the Keycloak side. Set a retention period that covers your audit window, and confirm with your team how events are exported to your log store. This step is done when a test sign-in and a test admin change both appear in the event records.
Set and record MFA, WebAuthn and lockout values
Configure the MFA methods your access standard requires, such as passkeys, recovery codes, TOTP or HOTP, and set the WebAuthn and OTP policy values. Turn on brute force protection with temporary or permanent lockout, and set the thresholds from your written standard. Record each policy value in version-controlled documentation with the date and the approver's name. This step is done when a test account shows the expected MFA prompt and lockout behavior, and the recorded values match the running settings.
Enable OpenLDAP auditlog and accesslog overlays
On the OpenLDAP backend, enable the auditlog overlay so every change to the database is written to a log file as standard LDIF. Enable the accesslog overlay so access records are stored in a separate database that you can query with LDAP searches. Keep the overlay configuration files in version control so each change has an author and a reviewer. Compare the ppolicy overlay settings with your written password standard, and confirm its behavior in your own tests, since ppolicy follows an expired draft that slapd still implements. This step is done when a test change appears in the audit log and a test access appears in the access log.
Schedule recurring reviews with named owners
Set a recurring review of logs from both systems, administrator and user access lists, and configuration changes. Name one owner for each review and one owner for each system, and record the review interval in your control documentation. Each review produces a dated record with the reviewer's name, the items checked, any exceptions and the follow-up ticket. This step is done when the first review record is signed and filed, and an assessor can sample it alongside the Keycloak event records and OpenLDAP logs.
Keycloak vs OpenLDAP for SOC 2 and ISO 27001 audits: questions before hiring help
How much effort does the identity evidence for SOC 2 take?
Effort depends mostly on scope, the number of applications behind single sign-on, and whether a directory already exists. Each application that signs in through the platform adds access reviews, sign-in evidence and change records to collect. A team with an existing, documented directory mostly samples what already runs. Log destinations matter too: Keycloak's user and admin event auditing and OpenLDAP's auditlog and accesslog overlays each need a retention and review path that an assessor can sample. The audit type changes the volume. A SOC 2 Type 1 report covers control design as of one date, while a Type 2 report tests operation over a period, so the evidence grows with the window. For ISO 27001, the three-year certification cycle, with at least one audit each calendar year, sets the surveillance rhythm. Get the assessor's request list before estimating.
How long does preparing identity evidence for an audit take?
No single figure is given here, and the timeline is set in the written scope agreed before work starts. Preparation length follows the same drivers as effort: how many applications sign in through the platform, how clean and documented the directory already is, how many change records must be pulled, and which audit window the assessor will test. Delays often come from people, such as application owners who must confirm who should have access. Ask any provider to map each phase, from scoping to evidence review, to dates and to a named owner for each dependency. Also ask your assessor when the evidence sample dates fall, since that sets the earliest possible finish.
What does an identity evidence project need from our team?
It needs named people who can open the systems and make decisions, starting with read access to the identity stores, including Keycloak realms or the OpenLDAP directory tree. Expect to name an owner for each sign-in flow, such as the application team that owns a SAML or OIDC client, plus the people who approve access changes. Change records matter: tickets, pull requests and approval history that show who changed a realm, a group or a directory entry, and when. The assessor's evidence request list sets the target, so your team should obtain it early and confirm which items already exist and which need collecting. Plan for someone who can explain how provisioning and deprovisioning actually run, because those answers are hard to reconstruct from configuration alone.
Can our team handle SOC 2 identity controls without outside help?
Yes, for many teams that already run Keycloak or a directory, provided someone owns the controls and has time to produce the evidence. The Keycloak Server Administration Guide covers the features an assessor will ask about, including event auditing, brute force protection and two-factor settings. The OpenLDAP 2.6 overlays chapter covers audit logging and access logging. A team new to either platform will spend much of its effort learning the product and the audit scope at the same time, which is the point where many teams choose outside help. Outside help is optional and can cover scoping, evidence design, configuration review or a pre-audit walkthrough. Whatever you choose, keep a control owner and an evidence owner named in the written plan.
Does using Keycloak or OpenLDAP make us SOC 2 or ISO 27001 compliant?
No. Running Keycloak or OpenLDAP does not make an organization compliant with SOC 2 or ISO 27001, because the platform is one input to a controlled system. An independent CPA firm issues a SOC 2 report, and an accredited certification body issues an ISO/IEC 27001 certificate after its own audit. DeployOpen does not issue audit reports, attestations or certifications. The platforms provide configuration and logging features that can support the controls: Keycloak's event and admin auditing, brute force protection and two-factor options, or OpenLDAP's overlays that record changes and accesses. Whether those features satisfy a given criterion or Annex A control depends on how your organization configures, operates and evidences them, and on what the assessor concludes.
How is a quote built for identity audit preparation?
A quote follows from a written, fixed scope agreed before work starts, and DeployOpen does not publish a price list. The scope lists the systems in play, such as Keycloak realms or OpenLDAP trees, the number of applications behind single sign-on, the log destinations, the audit type and window, and the deliverables. Each of those items sets effort, so a change in any of them changes the quote. Ask the quote to separate one-time work, such as setup, configuration, evidence collection and documentation, from recurring work, such as upgrades and continuous testing, which are available as retainers. Also ask what the provider needs from your team, what is excluded, and how scope changes are priced and approved in writing. Compare quotes only when each one is built on the same written scope.
How DeployOpen prepares the identity evidence for audit
DeployOpen scopes, builds and documents the identity layer for Keycloak or OpenLDAP so your compliance and security teams can review it against SOC 2 and ISO 27001 controls. We prepare the systems, controls and evidence for the assessment, but independent auditors and certification bodies issue the report or certificate. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How we scope
- The written scope lists which Keycloak or OpenLDAP systems, realms, directories and applications are in the assessment boundary.
- The scope also names the SOC 2 criteria or ISO 27001 Annex A controls the identity evidence maps to.
- Engagements are fixed-scope, and ongoing support and continuous testing can follow as a retainer.
How we build
- Where the scope requires it, we configure Keycloak user and admin event logging, brute force protection and MFA policies.
- For OpenLDAP, we configure the auditlog and accesslog overlays, which record changes and accesses for review.
- We document ppolicy settings and note it follows an expired draft that slapd still implements.
How we hand over
- We deliver the configuration baseline, the audit log settings and the access review steps as written documentation.
- Evidence for your assessor is prepared from the systems, such as Keycloak admin events and OpenLDAP overlay logs.
- Your auditor decides whether the evidence is sufficient, since DeployOpen does not issue audit reports or certifications.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Keycloak plans four minor releases a year, so upgrade evidence needs regular refresh as versions change.
- Ask the quote to list the evidence for each control so the retainer matches your audit calendar.

