Port 636: LDAPS (LDAP over TLS)
What port 636 (TCP) does, the security risks of leaving it open, and how to secure and test it.
| Port | 636 |
|---|---|
| Transport | TCP |
| Service | LDAP over TLS (LDAPS) |
| Encrypted | Yes |
What is port 636?
LDAPS is LDAP wrapped in TLS, so directory lookups and passwords are encrypted.
Common uses
- Applications and firewalls authenticating users against Active Directory securely
Security risks
- Expired or untrusted certificates on domain controllers breaking logins
How to secure port 636
- Install valid certificates on domain controllers and monitor expiry
- Restrict access to the servers that need directory lookups
How to check if port 636 is open
| Where | Command |
|---|---|
| Scan from another machine | nmap -p 636 <host> |
| Windows (PowerShell) | Test-NetConnection <host> -Port 636 |
| Linux (what is listening) | sudo ss -tulpn | grep :636 |
| Windows (what is listening) | netstat -ano | findstr :636 |
Only scan systems you own or have permission to test.
Example: block it at the internet edge (Cisco)
For a service that should stay inside your network, deny it on the internet-facing interface. Put the rule before any broader permit statements:
ip access-list extended INTERNET-IN
remark Block LDAPS from the internet
deny tcp any any eq 636
permit ip any any
!
interface GigabitEthernet0/0
ip access-group INTERNET-IN inIn a real network the final line would be your normal inbound policy, not "permit ip any any". Build and check rules with the ACL builder.
Related ports
Frequently asked questions
What is port 636 used for?
Port 636 (TCP) is used by LDAP over TLS (LDAPS). LDAPS is LDAP wrapped in TLS, so directory lookups and passwords are encrypted.
Is it safe to open port 636?
Only if the service needs to be reached and is configured securely. Install valid certificates on domain controllers and monitor expiry.
How do I check if port 636 is open?
From another computer, run nmap -p 636 followed by the host address. On the server itself, ss -tulpn on Linux or netstat -ano on Windows shows whether anything is listening on 636.
Learn more: TCP, UDP and ports explained and firewall basics.