Toolman

Port 389 — LDAP

TCP well-known

What runs on port 389

Directory services — user and group lookups, including Active Directory.

Security considerations

Unencrypted. Use LDAPS on 636 or StartTLS, otherwise credentials are readable on the wire.

Checking whether something is listening

# Linux / macOS — what is bound to the port
sudo lsof -i :389
sudo ss -lntp | grep :389

# Windows
netstat -ano | findstr :389
Get-NetTCPConnection -LocalPort 389

# is it reachable from outside?
nc -zv example.com 389
curl -v telnet://example.com:389

Freeing the port

# find the process, then stop it
sudo lsof -ti :389 | xargs kill        # Linux / macOS
netstat -ano | findstr :389            # note the PID, then:
taskkill /PID <pid> /F                    # Windows

Other common ports

All port numbers