Search
Home Search Center IP Encyclopedia Online Courses

What Is LDAP?

LDAP is a TCP/IP-based directory access protocol. An LDAP server mainly stores data that does not change frequently, such as email addresses and contact lists. LDAP defines multiple operations to implement a variety of functions, for example, the bind and query operations for user authentication and authorization.

What Is LDAP?

LDAP is a TCP/IP-based directory access protocol and uses the client/server architecture. Specifically, the server stores data and the client provides tools for operating the directory information tree (DIT).

LDAP can also be considered as a database. Generally, this database is run by an LDAP server, which mainly stores the following data that does not change frequently:

  • Employee information, such as names, phone numbers, and email addresses.
  • Public certificates and security keys.
  • Information about physical devices (such as servers) in an enterprise, such as the IP address, storage location, vendor, and purchase time.

Why Do We Need LDAP?

As an enterprise grows, the number of employee accounts increases, which complicates maintenance. In this case, you can use LDAP directory services to manage these accounts in one file, which greatly improves the work efficiency of administrators and employees.

With such services, enterprises can centrally manage user identities, permissions, and accessible resources, improving security and efficiency. For example, many enterprises use LDAP to implement single sign-on (SSO), enabling a user to access multiple applications and services with one login. In addition, LDAP is widely used for mail servers, VPNs, file sharing, and printing services.

What Are the Differences Between LDAP and Active Directory?

Active Directory (AD) is a directory service developed by Microsoft, stores and manages directory information in a Windows domain, and provides identity authentication and authorization services. It is built in the Windows OS and is closely integrated with other Microsoft products. AD consists of an LDAP server and multiple service components, such as Active Directory Domain Services (AD DS), Active Directory Lightweight Directory Services (AD LDS), Active Directory Certificate Services (AD CS), Active Directory Federation Service (AD FS), and Active Directory Rights Management Services (AD RMS).

In conclusion, AD contains the LDAP server and LDAP applications (such as the Windows domain controller). The following table lists the key differences between LDAP and AD.

Difference

LDAP

AD

Protocol and service

LDAP is an open, vendor-neutral protocol.

AD is a directory service developed by Microsoft.

Function

LDAP is mainly used to query directory services and authenticate identities.

AD provides more functions, including group policies, domain joining, and SSO.

Platform compatibility

LDAP can run on multiple OSs.

AD is mainly applicable to the Windows OS.

Data storage

LDAP is usually used to store static data, such as usernames and passwords.

AD is used to store dynamic data and complex organization structures.

How Does LDAP Work?

LDAP allows servers to communicate with AD and other directory services. It enables messages, such as client requests, server responses, and data formatting, to be exchanged between servers and client applications.

LDAP Storage Structure

The LDAP storage structure is a tree structure consisting of entries and attributes, involving the following concepts:

  1. DIT: represents the entire directory information set in a directory service system. Each node in the tree is an entry.
  2. Entry: refers to the record of an object, such as a user or a device. Each entry has a uniquely identified distinguished name (DN).
  3. Attribute: describes information about an entry, such as the username, password, and email address.

The following figure shows an LDAP DIT.

LDAP DIT structure
LDAP DIT structure

An LDAP DIT consists of the following:

  • DN: indicates the detailed location of an object, for example, uid=clara,ou=ca,dc=global,dc=net.
  • Domain controller (DC): indicates the domain (DIT) to which an object belongs.
  • Organization unit (OU): indicates the organization (DIT branch) to which an object belongs.
  • Common name (CN): indicates the name of an object.
  • Base DN: indicates the DN of the root node (top of a DIT).

LDAP Authentication

LDAP authentication is identity authentication based on directory services. It authenticates the identities of users and authorizes them to access system resources. LDAP authentication enables enterprises to manage user identity data in a unified manner, centrally authenticate and authorize users, and ensure high scalability and security of the system.

LDAP authentication process
LDAP authentication process
  1. A user enters the username and password for login.
  2. The client communicates with the LDAP server, creates a user DN, and uses the DN and password to initiate authentication.
  3. The LDAP server compares the hash value of the entered password with that of the stored password to verify the entered password.
  4. The verification result is returned.
  5. If the authentication is successful, the user logs in to the client successfully.

What Are the Application Scenarios of LDAP?

Unified Authentication for Multiple Platforms

LDAP implements unified authentication for multiple platforms, enabling an employee to use one account to access all IT systems. The following are two examples.

  • An employee uses one account to log in to the file sharing system, mailbox, Wi-Fi network, and iMaster NCE-Campus.
  • An enterprise sets login information on the LDAP server and configures interconnection between iMaster NCE-Campus and the LDAP server. Then employees can use the LDAP account to log in to iMaster NCE-Campus.
Unified LDAP authentication for multiple platforms
Unified LDAP authentication for multiple platforms

LDAP Authentication for Network Access

After a user enters the username and password to access a campus network, iMaster NCE-Campus sends the user information to the LDAP server for identity authentication. After the authentication succeeds, iMaster NCE-Campus authorizes the user to access network resources.

LDAP authentication for network access
LDAP authentication for network access
About This Topic
  • Author: Yang Jie
  • Updated on: 2026-11-04
  • Views: 230
  • Average rating:
Share link to