Port 636 is the LDAPS port – LDAP encrypted with TLS from the start of the connection (implicit TLS). Unlike STARTTLS on port 389 which upgrades an existing connection, port 636 requires TLS before any LDAP operations. Use port 636 for all cross-network directory queries where plaintext credentials are unacceptable.
Port Number
636
Protocol
TCP
Service
LDAP over TLS/SSL
Range
IANA Well-Known (0–1023)
Check LDAPS certificate validity and subject
openssl s_client -connect dc.example.com:636 -showcerts 2>/dev/null | openssl x509 -noout -dates -subjectTest LDAPS bind with user credentials
ldapsearch -H ldaps://dc.example.com -x -b 'dc=example,dc=com' -D '[email protected]' -W '(samAccountName=admin)'Check TLS version and cipher suite in use
echo | openssl s_client -connect dc:636 2>/dev/null | grep 'Protocol\|Cipher'PowerShell: verify LDAPS port is reachable from client
Test-NetConnection dc.example.com -Port 636ldapsearch -H ldaps://dc.example.com:636 -b 'dc=example,dc=com'
openssl s_client -connect dc.example.com:636
LDAPTLS_REQCERT=allow ldapsearch -H ldaps://hostLDAPS was introduced alongside LDAPv3 (RFC 4511) as a way to encrypt LDAP communications. Port 636 was registered for LDAP over implicit TLS. Unlike STARTTLS on port 389 (which upgrades mid-connection), LDAPS establishes TLS from the first byte – similar to HTTPS vs HTTP. Microsoft has been pushing LDAPS adoption aggressively: Windows Server 2025 plans to disable unsigned LDAP binds by default, forcing all clients to use either LDAPS (636) or LDAP+signing (389).
LDAPS (636) vs LDAP+STARTTLS (389) – which is more secure?
LDAPS (636) is marginally more secure in practice: TLS from first byte means no downgrade attack window. STARTTLS (389) starts plaintext then upgrades – a MITM can strip the STARTTLS command (if client doesn't enforce). However, both are secure when properly configured. Microsoft recommends LDAPS for simplicity. The real security gap is clients that disable certificate validation – fix that regardless of port.
How do I enable LDAPS on Active Directory?
AD automatically enables LDAPS when the DC has a valid certificate with Server Authentication EKU. Options: (1) Enterprise CA: auto-enrolled via Certificate Services. (2) Third-party CA: request cert with DC's FQDN as SAN, import to Local Computer\Personal store. (3) Verify: ldp.exe → Connection → connect to DC:636 with SSL. Common failure: cert missing the DC's FQDN in SAN field, or cert in wrong store (User instead of Computer).