Home Net Guide

Home / Port numbers / Port 389

Port 389: LDAP

Looking up users and groups in a directory. Port 389 uses TCP, UDP.

Port
389
Commonly used for
LDAP
Transport
TCP, UDP
Encrypted
Optional (STARTTLS)
Range
System (well-known) port, 0 to 1023
Our advice
Keep it closed to the internet
IANA registration
ldap Lightweight Directory Access Protocol (TCP, UDP)

Registration: IANA Service Name and Transport Protocol Port Number Registry, retrieved 15 November 2026. The registered name can differ from the everyday use, because popular software often adopts a port without registering it. The description and advice are written by Home Net Guide and describe common practice: any program can be set to use any port.

What port 389 is used for

Port 389 is LDAP, the protocol for querying directories of users, groups and computers. Active Directory is the largest example, and applications use LDAP to check sign-ins against it. Over UDP the same port answers small connectionless queries that Windows uses to locate a domain controller.

Should port 389 be open?

A directory exposed to the internet reveals the organisation's user list and invites password guessing. The UDP service has also been heavily abused for amplification attacks. Keep it internal, and use the encrypted form for any sign-in.

Related ports

  • Port 636 (LDAP over TLS): encrypted directory lookups and sign-in checks
  • Port 3268 (Active Directory Global Catalog): searching across every domain in an Active Directory forest
  • Port 88 (Kerberos): sign-in tickets on Windows domains and Unix realms

See all port numbers for the full list and how ports, TCP and UDP work.

Previous: Port 179 (BGP) · Next: Port 443 (HTTPS)