What is ldap

Last updated: April 1, 2026

Quick Answer: LDAP (Lightweight Directory Access Protocol) is a network protocol used to access and manage directory information, commonly used for authentication and user management in enterprise systems.

Key Facts

Overview

LDAP (Lightweight Directory Access Protocol) is an open-source protocol designed for accessing and maintaining distributed directory information services over a network. It provides a standardized way for computers and applications to query and update directory information without requiring knowledge of how the data is physically stored or organized on the server.

How LDAP Works

LDAP operates by allowing clients to connect to an LDAP server and perform search operations. The protocol uses a simple query model where clients can search for information based on specific criteria. Directory entries are organized in a hierarchical tree structure, with each entry having a Distinguished Name (DN) that uniquely identifies it within the directory. Users can authenticate by providing their credentials, which the LDAP server validates before allowing access.

Common Applications

LDAP is widely used in enterprise environments for several purposes. Authentication and authorization is a primary use, where systems verify user identities and permissions. User and group management allows IT administrators to centrally manage user accounts and organizational structures. Email client configuration often uses LDAP to maintain address books. Many organizations integrate LDAP with other systems to maintain a single source of truth for user information, reducing the need for redundant data entry and improving security.

LDAP vs. Active Directory

While often mentioned together, LDAP and Active Directory serve different but related purposes. LDAP is a protocol—a set of rules for communication—while Active Directory is a Microsoft service that implements LDAP and adds additional features specific to Windows environments. Active Directory uses LDAP as one of its protocols and can be queried using LDAP clients.

Security Considerations

Standard LDAP connections transmit data without encryption, making them vulnerable to interception. To address this, LDAPS (LDAP over SSL/TLS) provides encrypted connections on port 636. Organizations should always use encrypted LDAP connections when handling sensitive information like passwords and should implement access controls to limit who can query the directory.

Related Questions

What is Active Directory?

Active Directory is a Microsoft service that manages user identities, permissions, and resources on Windows networks. It implements LDAP and adds directory-specific features like Group Policies and Kerberos authentication for enterprise environments.

How do I connect to an LDAP server?

You can connect to an LDAP server using an LDAP client tool or by configuring applications with the server's address, port, and credentials. Most applications provide LDAP integration through connection settings that require the LDAP server URL and authentication details.

What is the difference between LDAP and LDAPS?

LDAP transmits data unencrypted on port 389, while LDAPS (LDAP Secure) uses SSL/TLS encryption on port 636. LDAPS is more secure and is recommended for production environments handling sensitive user information.

Sources

  1. Wikipedia - LDAP CC-BY-SA-4.0
  2. RFC 4511 - LDAP Protocol IETF