← Back to all network ports
TCP/UDP
Unknown

389 LDAP

LDAP backs identity lookups, directory queries, and authentication workflows across enterprise systems.

Security Context

Port 389 is context-dependent. Its risk depends on the daemon behind it, whether the traffic is encrypted, and how tightly the listener is scoped to trusted networks.

  • !Unencrypted LDAP can expose credentials and directory data.

Nmap Check

Use a version probe first so you confirm whether the expected service is really what is listening on this port.

nmap -sS -sU -p 389 <host>

Firewall Commands

UFW
sudo ufw allow 389/tcp
sudo ufw allow 389/udp
iptables
sudo iptables -A INPUT -p tcp --dport 389 -j ACCEPT
sudo iptables -A INPUT -p udp --dport 389 -j ACCEPT

Related TCP/UDP Ports