Port 389 (LDAP)
Port 389 is the LDAP port, used to query directory services such as Active Directory and OpenLDAP. Its IANA registration, transports and port range.
Updated
Port 389 is registered with IANA under the service name ldap, on TCP and UDP. It is one of the well-known (system) ports, 0 to 1023.
IANA registration
This is the assignment for port 389 exactly as the registry lists it, one row per service name and transport.
| Service name | Transport | Description | Reference |
|---|---|---|---|
ldap |
TCP | Lightweight Directory Access Protocol | None listed |
ldap |
UDP | Lightweight Directory Access Protocol | None listed |
Source: IANA Service Name and Transport Protocol Port Number Registry, as downloaded on December 5, 2026. The registry changes over time; the linked page is the authority.
A registration records who a port number is assigned to. It does not prove that whatever is listening on the port is that service, and it does not mean the service uses every transport listed: older entries were routinely registered for both TCP and UDP.
In practice
This section is written by Network Utility. It is not part of the IANA registry.
Port 389 is the LDAP port, used to query directory services such as Active Directory and OpenLDAP.
Applications use LDAP to look up users and groups and to check passwords. Port 389 starts unencrypted; a client can upgrade with StartTLS. LDAP over TLS from the start uses port 636.
A simple bind on an unencrypted connection sends the password in clear text, so require TLS. Do not expose port 389 to the internet: besides leaking directory data, connectionless LDAP on UDP 389 has been abused for amplification attacks.
Related ports: 636 (LDAPS), 88 (Kerberos), 3268 (Active Directory Global Catalog).
Port range
Port 389 falls in the well-known (system) port range, 0 to 1023. RFC 6335 calls these System Ports. IANA assigns them only through the IETF Review or IESG Approval procedures, the strictest rules of the three ranges. On Unix-like systems a program has traditionally needed root privileges to listen on a port below 1024.
The other ranges are registered (user) ports (1024 to 49151) and dynamic (private) ports (49152 to 65535). The ranges and the assignment rules are defined in RFC 6335.
Look up another port in the port table.