Open Protocol: Lightweight Directory Access Protocol (LDAP)

goay xuan hui
1 min readJan 16, 2022


What is LDAP?

LDAP is a lightweight protocol used to access and modify centrally stored information on directories supporting X.500 models.

LDAP Client/Server Model

  1. An LDAP client application connects to an LDAP server. This process also referred to as “binding to a server”.
  2. Based on the access restrictions configured on the server, the LDAP server either accepts or refuses the bind/connection request.

LDAP Connection Information

When you are trying to bind LDAP client to LDAP server, you would need the following basic information.

Hostname: Server hosting the LDAP directory

Ports: 389 (LDAP with StartTLS), 636 (LDAPS with SSL/TSL enabled)

Base DN: Your domain in DN format. For example, dc=mydomain, dc=com for

Username and Password: In addition to authenticating with a certificate, some LDAP clients require that you enter a username and password.

Client Certificate and Key Files: If the LDAP client does not offer a way to authenticate to LDAP with a client certificate, use stunnel as a proxy.



goay xuan hui

A food lover, a cyber security enthusiast, a musician and a traveller, so you will see a mix of different contents in my blog. ☺️