Networking

Which port does Lightweight Directory Access Protocol (LDAP) use by default to query a directory service?

Show the answer

Correct answerD. 389

AWhy not this: Port 143 is IMAP, used by mail clients to access mailboxes.

BWhy not this: Port 53 is DNS, which resolves names to addresses, not directory entries.

CWhy not this: Port 3389 is RDP, used for remote desktop sessions.

DWhy this is right: LDAP listens on port 389 for directory queries and updates.

LDAP uses port 389 to query and update directory services such as user and computer accounts. Port 143 is IMAP, which retrieves mail rather than querying a directory.