Skip to content

All ports

Port 389: LDAP

Port 389 is used by LDAP over TCP and UDP. Port 389 is LDAP, the protocol used to search and sign in against a directory such as Active Directory. It appears in the study tables for 200-301, 220-1201, N10-009, SY0-701.

What runs on port 389

Lightweight Directory Access Protocol (LDAP) uses TCP/UDP at the application layer. Directory queries for users and groups, often used as the identity store behind AAA. It starts unencrypted and can be upgraded with TLS.

Port 389 is LDAP, the protocol used to search and sign in against a directory such as Active Directory. Applications use it to look up users, groups and attributes.

Secure alternative and common mix-ups

The study tables do not list a separate secure replacement for LDAP. Where it has to cross a network you do not control, restrict who can reach it and carry it inside a VPN.

Plain LDAP can send a simple bind password in cleartext. Protect it either with LDAPS on port 636, which uses TLS from the first byte, or with StartTLS on port 389, which upgrades the existing connection.

Check port 389 on your own network

To test a remote host from Windows, run Test-NetConnection with the host name and -Port 389. From Linux or macOS, run nc -vz host 389. To see what is listening on the machine itself, use ss -tulpn on Linux or netstat -ano on Windows and look for :389.

UDP has no handshake, so a silent probe does not prove the port is closed. No reply can mean the port is open and the service ignored the probe, or that a firewall dropped it. A scanner such as nmap with -sU reports that state as open or filtered.

Exam objectives that include it

These are the objectives whose tables list port 389. The same row appears in the cheat sheet for each exam.

Learn 389 together with these. They are its pair, its secure counterpart or a service that sits under the same objective.

Questions

The port number does not decide that. LDAP on port 389 is only as safe as its configuration, how far it is exposed and how current the software is.

Keep going with the ports quiz and the cheat sheets.

Start studying free

Free plan, no card.