LDAP

LDAP (Lightweight Directory Access Protocol) is a protocol used to access and manage directory information services over an IP network. It is commonly used for authentication and directory services, allowing users to find data about individuals, organizations, and other resources. LDAP is widely implemented in enterprise environments for centralized authentication and directory management.

What is LDAP

LDAP, or Lightweight Directory Access Protocol, is a protocol designed for accessing and maintaining distributed directory information services over an IP network. It is a critical component in many enterprise environments, providing a centralized way to manage user authentication and directory services. LDAP directories store information such as user credentials, organizational data, and resource locations, making it easier to manage and retrieve this information efficiently.

Originally developed by Tim Howes and his colleagues at the University of Michigan, LDAP has evolved over the years to become a standard protocol for directory services. It is widely used in conjunction with other protocols and services, such as Active Directory, to provide a robust and scalable directory service solution. LDAP's lightweight nature makes it suitable for a variety of applications, from small-scale deployments to large enterprise environments.

LDAP operates on a client-server model, where the client sends requests to the LDAP server, which then processes these requests and returns the appropriate responses. This model allows for efficient querying and updating of directory information. LDAP supports a wide range of operations, including searching for directory entries, adding new entries, deleting entries, and modifying existing entries. Its flexibility and scalability make it an essential tool for managing directory information in modern IT infrastructures.

LDAP runs on TCP and UDP port 389 and is official IANA port.

Security risk

If port 389 is open and the LDAP service is running, it can be a significant security risk if not properly secured. Unauthorized access to the LDAP directory can lead to data breaches, exposing sensitive information such as user credentials and organizational data. It is crucial to implement strong authentication mechanisms and access controls to mitigate these risks.

In our UFW tutorial you can follow instructions how you can configure UFW to close port 389. Use StackChanges to monitor if the LDAP port is closed and stays closed. StackChanges will send an alert if port 389 is open again.