Lightweight Directory Access Protocol: Active Directory, OpenLDAP and FreeIPA directory queries and binds. UDP 389 is used by AD for domain controller discovery (CLDAP).
Lightweight Directory Access Protocol: Active Directory, OpenLDAP and FreeIPA directory queries and binds. UDP 389 is used by AD for domain controller discovery (CLDAP).
Do not expose to the internet. Do not expose. Simple binds on 389 send passwords in clear text unless StartTLS is used, anonymous binds can leak the directory, and open CLDAP on UDP 389 has been used for amplification DDoS. Require LDAP signing and channel binding on AD.
sudo ss -tlnp 'sport = :389'sudo ss -ulnp 'sport = :389'sudo lsof -nP -i :389sudo netstat -tlnp | grep ':389 'netstat -ano | findstr :389Get-NetTCPConnection -LocalPort 389 -State Listen | Select LocalAddress,OwningProcessnc -vz -w 5 HOST 389Test-NetConnection HOST -Port 389nc -vzu -w 5 HOST 389sudo ufw deny 389/tcpsudo iptables -A INPUT -p tcp --dport 389 -j DROPsudo nft add rule inet filter input tcp dport 389 dropNew-NetFirewallRule -DisplayName 'Block TCP 389' -Direction Inbound -Protocol TCP -LocalPort 389 -Action Blocksudo ufw deny 389/udpsudo iptables -A INPUT -p udp --dport 389 -j DROPsudo nft add rule inet filter input udp dport 389 dropNew-NetFirewallRule -DisplayName 'Block UDP 389' -Direction Inbound -Protocol UDP -LocalPort 389 -Action BlockAll port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.