What Is LDAP (Lightweight Directory Access Protocol)?

Related problems: Old applications that can only check passwords against our directory; Unencrypted directory traffic flagged in a security assessment; Not sure what breaks if we move from on-premises directory to cloud identity

Lightweight Directory Access Protocol (LDAP) is an open, vendor-neutral protocol for reading and updating information in a directory service, the database that holds an organization’s users, groups, computers and other records. Applications, network devices and servers use LDAP to look up a user’s details or group memberships and, commonly, to check a username and password. LDAP is defined by IETF standards, with LDAPv3 the current version, and it is supported by most enterprise directories, including Microsoft Active Directory and OpenLDAP.

At a glance

  • A protocol for querying and modifying directory services; not a directory product itself.
  • Organizes entries in a tree, each identified by a distinguished name and holding attributes.
  • Often used by applications, VPNs, Wi-Fi and network devices to authenticate users against the directory.
  • Plain LDAP traffic is unencrypted by default; LDAPS or StartTLS add encryption.
  • Still widespread on-premises, while web and SaaS sign-in has largely moved to SAML and OpenID Connect.

What problem it solves

Without a shared directory, each application and device keeps its own user list, so accounts multiply and removing a leaver means visiting every system. LDAP gives these systems a common way to ask one central directory “does this user exist, which groups are they in, and is this password correct?”. That lets organizations manage accounts and group memberships in one place and have applications follow along.

For buyers today, LDAP matters mostly because of what still depends on it. Many on-premises applications, printers, VPN gateways, network devices and older tools authenticate only through LDAP, and those dependencies shape how quickly an organization can move to cloud identity and access management (IAM).

How it works

Directory structure. Entries are arranged in a hierarchy, for example organization, then departments or organizational units, then users. Each entry has a unique distinguished name and attributes such as name, email, phone or group membership, following a schema.

Connection and bind. A client, such as an application server, connects to the directory server and binds, meaning it authenticates. It might bind as a service account to search, or bind as the user to check their password.

Search. The client searches part of the tree with a filter, for example “find the user with this email” or “list members of this group”, and reads the attributes returned.

Authentication pattern. A common application flow is: bind as a service account, search for the user’s entry, then attempt to bind as that user with the password they entered. A successful bind means the password is correct.

Modify. Authorized clients can add, change or delete entries, which is how some provisioning tools manage directory accounts.

Encryption. Because plain LDAP traffic is unencrypted, deployments use LDAPS (LDAP over Transport Layer Security (TLS)) or StartTLS to upgrade the connection, plus signing where the directory supports it.

When it matters for buyers

  • When planning a move to cloud identity. Inventory which systems use LDAP before retiring or changing on-premises directories; these are often the long tail of a migration.
  • After a security assessment. Unencrypted LDAP, anonymous binds and over-privileged LDAP service accounts are common findings. Service accounts with broad directory rights are often brought under privileged access management (PAM).
  • When adding MFA. Password checks over LDAP don’t support modern multi-factor authentication (MFA) on their own; options include moving the app to SAML or OIDC, or putting an MFA-capable proxy or gateway in front of it.
  • When buying applications or network gear. Prefer SAML or OpenID Connect support for user sign-in, and treat LDAP-only authentication as a legacy constraint.

Our privileged access management overview covers controlling the service and admin accounts that directory integrations rely on.

Questions to ask vendors

  • Does your product authenticate users through LDAP, SAML, OpenID Connect or several of these?
  • Do you support LDAPS or StartTLS, and certificate validation?
  • What permissions does your LDAP service account need, and can it be read-only?
  • Can you support MFA for users who sign in through LDAP?
  • If we move to a cloud directory, do you offer an LDAP interface, and what are its limits?
  • How do you handle directory failover and timeouts?

How it differs from SAML and identity providers

LDAP is a directory protocol: an application talks directly to the directory, usually passing the user’s password to be checked. Security Assertion Markup Language (SAML) and OpenID Connect are federation protocols: the application typically doesn’t handle the password, because the user signs in at an identity provider (IdP), which sends the app a signed statement of who they are. That design is what makes web single sign-on (SSO) and central MFA practical. Identity providers often still read users and groups from an LDAP directory behind the scenes, so the two commonly coexist.

Frequently Asked Questions

Is LDAP the same as Active Directory?
No. Active Directory is Microsoft's directory service; LDAP is one of the protocols used to read and update it. Other directories, such as OpenLDAP and many cloud directory services, also support LDAP.
Is LDAP secure?
It can be, if configured carefully. Plain LDAP can send data, and with simple binds even passwords, unencrypted. Using LDAP over TLS (LDAPS) or StartTLS, requiring signing where supported, and limiting service account permissions are common hardening steps.
Can LDAP do single sign-on?
Not in the modern sense. An LDAP-connected app usually asks for the user's password and checks it against the directory, so the user still signs in to each app separately. Single sign-on to web apps typically uses SAML or OpenID Connect through an identity provider.
Do cloud identity providers support LDAP?
Some offer an LDAP interface or a directory service that supports it, often to keep legacy applications working during a move to the cloud. Features and limits vary, so test the applications that depend on it.

You Don’t Need Another Sales Call. You Need an Answer.

30 minutes. No pitch. Just an honest conversation about where you are, what you need, and whether working together makes sense.

We use your details to set up and prepare for the call, and send the newsletter only if you ask for it. Privacy policy.