Port 389: LDAP

Port 389 is LDAP, the directory protocol behind Active Directory and many company login systems.

At a glance
Port
389 / TCP/UDP
Service
LDAP
Also called
ldap, cldap, active directory
If exposed
Medium risk if exposed

What runs on port 389

LDAP servers listen on TCP 389 to answer questions about users, groups and computers, and to check passwords. Microsoft Active Directory domain controllers are the most common LDAP servers; OpenLDAP is the common open-source one. Connectionless LDAP (CLDAP) uses UDP 389.

On a home network

Home devices basically never run LDAP servers. Some NAS boxes offer an LDAP server package for small offices, and office printers can query a directory for email addresses.

If port 389 is reachable from the internet

A directory server reachable from the internet leaks information about users and systems and invites password spraying. CLDAP on UDP 389 has been widely abused for DDoS amplification. There is almost never a good reason to expose 389; keep directory traffic inside the network or on a VPN.

How to check whether it is open on your network

If a scan of your public address shows 389, find the server behind the port forward, usually a NAS directory service or a Windows server, and close it.

Related ports

All portsPort lookupSubnet calculator

Other tools

IPv4 · IPv6 · CIDR
Subnet calculator
Network, broadcast, host range and wildcard for any CIDR, IPv4 or IPv6. Turns an IP range into the CIDR blocks that cover it.
OUI · MA-L · MA-M · MA-S
MAC vendor lookup
Which company made the device behind a hardware address, from the IEEE registry. Spots randomised private addresses too.
X.509 · PKCS#10 · PEM · DER
Certificate and CSR decoder
Subject, issuer, validity, key, SANs, key usage and fingerprints from a certificate or signing request. Parsed in your browser.
VPN · resolver · privacy
DNS leak test
Which DNS servers actually answer your lookups on this connection, who owns them, and whether your VPN or private DNS is really being used.
Cloudflare · Google · Quad9 · 8 resolvers
DNS benchmark
Times eight public resolvers from where you are, over DNS-over-HTTPS, and ranks them by median response.
TCP · UDP · what is this port
Port lookup
What a port number is used for, which home devices open it, and whether it matters that it is reachable.
Certificate Transparency · CT logs
Subdomain finder
Every subdomain on a currently valid TLS certificate, from the public Certificate Transparency logs, with the ones worth a second look flagged.
IP to ASN · BGP · IP ranges
ASN lookup
Which network routes an IP address, who holds an AS number, and every IPv4 and IPv6 range it announces. Live BGP data from RIPEstat.
HTTP archive
HAR analyzer
Open a HAR file and see what a page really loaded: third parties, slowest requests, insecure cookies, servers that leak versions.
IIS · nginx · Apache · access logs
Log analyzer
Check IIS, nginx and Apache access logs for signs of exploitation, with a verdict per CVE and every finding traced to its line. Read in your browser, never uploaded.
Public IP · fingerprint
What is my IP
Your public address and everything else your browser hands to every site you visit, without asking.