Subscribe to the Non-Human & AI Identity Journal

LDAP

LDAP is a protocol for querying and managing directory services over a network. It standardises how clients talk to a directory, but it is not the directory itself. In practice, it is often used as an access layer for authentication and identity lookups in heterogeneous environments.

Expanded Definition

LDAP, or Lightweight Directory Access Protocol, is a network protocol for reading and updating directory information such as users, groups, devices, and attributes. In NHI and IAM programs, LDAP is commonly the lookup and authentication path that connects applications to a directory service, but it is not itself the identity store. That distinction matters because LDAP simply exposes directory operations while the underlying directory enforces data structure, policy, and persistence. For technical governance, LDAP often sits alongside Kerberos, SSO, and federation rather than replacing them. The term is also used loosely in industry, so definitions vary across vendors when LDAP is blended with directory synchronisation, legacy bind authentication, or proxy services. The most precise interpretation is that LDAP is an access protocol for directory-backed identity operations, not a complete identity architecture. For a broader NHI context, the Ultimate Guide to NHIs places directory access within lifecycle and governance controls, while RFC 4511 defines the LDAP protocol itself. The most common misapplication is treating LDAP as a secure identity strategy, which occurs when teams assume directory connectivity alone provides authentication, authorisation, and lifecycle control.

Examples and Use Cases

Implementing LDAP rigorously often introduces dependence on central directory availability and schema discipline, requiring organisations to weigh interoperability against legacy coupling and operational fragility.

  • An application queries LDAP to retrieve a user’s group memberships before mapping those groups to RBAC permissions in a downstream system.
  • A service authenticates against an LDAP directory during login, then uses a separate session or token mechanism for ongoing access decisions.
  • A SIEM or identity workflow reads directory attributes through LDAP to reconcile service accounts, ownership, and stale memberships.
  • Teams use LDAP as a bridge for older enterprise software that cannot natively consume modern federation, even though the security model still needs stronger controls.
  • During investigation, analysts compare LDAP bind activity and directory change logs to identify unusual account lookups or privilege drift, guided by the governance patterns described in the Ultimate Guide to NHIs and the identity-risk framing in NIST Cybersecurity Framework 2.0.

LDAP is also central when organisations need to normalise identities across heterogeneous tools, but it should not be confused with secrets management, token issuance, or privileged access controls. Those responsibilities belong elsewhere in the architecture.

Why It Matters in NHI Security

LDAP matters in NHI security because it often becomes the authoritative path for machines, scripts, and applications that rely on directory objects for access. When LDAP-backed accounts are overpermissive, stale, or insufficiently monitored, compromised service accounts can move laterally far beyond the original application boundary. NHIMG research shows that 97% of NHIs carry excessive privileges and 80% of identity breaches involved compromised non-human identities such as service accounts and API keys, which makes directory exposure a direct control concern rather than an abstract protocol issue. The Ultimate Guide to NHIs also notes that only 5.7% of organisations have full visibility into their service accounts, which means LDAP-backed identities can persist unnoticed long after their business purpose has ended. In practical terms, LDAP governance must cover bind accounts, schema hygiene, group nesting, and offboarding, not just login success. That is why teams should map directory exposure to broader risk controls in NIST Cybersecurity Framework 2.0. Organisations typically encounter LDAP as a priority only after a service account abuse incident, at which point directory hygiene becomes operationally unavoidable to address.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-01 LDAP-backed service accounts are part of NHI inventory and governance scope.
NIST CSF 2.0 PR.AC-1 LDAP is used to enforce and evaluate identity-based access to resources.
NIST Zero Trust (SP 800-207) LDAP often underpins identity verification within zero trust architectures.

Inventory directory-linked non-human identities and track their ownership, purpose, and lifecycle.