Ports / LDAP

TCP port

Port 389: LDAP

TCP port 389 is LDAP: servers ask one central directory who a user is and which groups they belong to. Port 636 is LDAP inside TLS (LDAPS).

  • A connection to port 389 starts unencrypted and can be upgraded with StartTLS.

Check port 389 on Linux

Put the server's name or address in place of HOST.

ss -tlnp 'sport = :389'
On the server: is a program listening on TCP port 389, on which address, and which program? How to read ss.
nc -zv HOST 389
From a client: does a TCP connection to port 389 open, get refused, or time out? How to read nc.
tcpdump -ni any tcp port 389
On either end: the packets to and from TCP port 389, as they cross the card. How to read tcpdump.
nmap -p 389 HOST
From outside: is TCP port 389 open, closed or filtered? How to read nmap.

What runs on it

LDAP and directories
One central tree of people and groups, which every server asks at login instead of keeping its own accounts.

Use port 389 on real machines

Open LDAP: one account for every server

Sources

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab