Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

To protect LDAP connections to Active Directory Domain Services (AD DS), install a suitable Server Authentication certificate on every domain controller that must accept secure connections, have clients connect using the matching DNS name, and use LDAPS on TCP 636—or TCP 3269 for Global Catalog queries. Then audit client compatibility before requiring LDAP signing or tightening channel-binding policy: these controls complement TLS, but can break older applications if enabled without testing.

What LDAPS protects—and what it does not

Ordinary LDAP can expose credentials and directory queries when a client uses a simple bind or otherwise communicates without TLS. An attacker able to observe or alter that traffic may be able to capture credentials, read queries, or interfere with requests. Network isolation helps reduce exposure, but does not encrypt the connection.

LDAPS wraps the LDAP connection in TLS from the start. It protects confidentiality in transit when TLS negotiation succeeds and the client validates the certificate presented by the intended server. It does not protect every Active Directory protocol, and encryption alone is not a guarantee against every man-in-the-middle or authentication-integrity risk.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Identify what each integration actually uses before changing it. “LDAP” in an application setting could mean plain LDAP, LDAPS, StartTLS, or SASL authentication with signing or sealing. These are not interchangeable:

#1 Best Overall
iStorage datAshur Personal2 64 GB - Secure Flash Drive - Password Protected - Portable - Military Grade Hardware Encryption
  • Easy to use, PIN authenticated hardware encrypted USB Flash Drive - Perfect solution to protect your digital assets. Simply enter a 7-15 digit PIN to authenticate and use as a normal USB flash drive. When the drive is disconnected, all data is encrypted using AES-XTS 256-bit hardware encryption (no software required).
  • Without the PIN, there’s no way IN! All data transferred to the drive is encrypted in real time and is protected from unauthorised access even if the device is lost or stolen!
  • The datAshur Personal2 helps you ensure compliance with data regulations such as GDPR, CCPA, HIPAA.
  • The datAshur Personal2 will work on any device with a USB port, no software is required. Compatible with: MS Windows, macOS, Linux, Chrome, Android, Thin Clients, Zero Clients, Embedded Systems, Citrix and VMware
  • Transfer your files in seconds Lightning fast backwards compatible USB 3.2 data transfer speeds. Up to 169MB/s Read speeds Up to 135MB/s Write speeds.
Method What it does Typical AD DS port
LDAP LDAP without TLS; security depends on authentication and any negotiated SASL protections. 389
LDAPS Starts TLS immediately, then carries LDAP inside the protected connection. 636
Global Catalog LDAP LDAP access to the Global Catalog. 3268
Global Catalog LDAPS TLS-protected Global Catalog access. 3269
StartTLS Starts on the LDAP endpoint and upgrades the connection only after the client successfully requests StartTLS. 389

AD DS supports both direct LDAPS and StartTLS. With StartTLS, the client must explicitly issue the extended operation and validate the negotiated TLS connection; a connection to port 389 is not secure simply because the application has a TLS option. Microsoft documents the protocol behavior in its LDAP-over-SSL/TLS specification.

Three protections are often confused:

  • TLS/LDAPS encrypts the connection and authenticates the server through its certificate.
  • LDAP signing provides integrity protection for SASL LDAP binds and can let a server reject unsigned traffic.
  • LDAP channel binding associates authentication with the underlying TLS session, helping defend against certain relay or session-hijacking scenarios.

They address related but different risks. For a stronger deployment, use correctly validated TLS and plan signing and channel-binding settings around the clients in your environment. See Microsoft’s LDAP signing guidance.

Plan the change before touching domain controllers

Inventory applications, appliances, Linux services, identity connectors, monitoring tools, and custom code that query AD. For each one, record the endpoint and port, whether it uses a Global Catalog, the bind type, whether it validates the server certificate, and whether it supports StartTLS, SASL signing, and channel binding. Confirm the DNS name clients will use and which CA trust stores those clients rely on; Java and appliance software may not use the Windows trust store.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Also plan the network path and certificate lifecycle. Allow only the required TCP ports from approved client networks. Arrange a maintenance window if using the Local Computer certificate store, because Microsoft’s documented procedure calls for a domain-controller restart after certificate installation there. Test each domain controller individually, not only a load-balanced name or domain alias.

Get a certificate that AD DS can use

A domain controller’s LDAPS certificate must have the Server Authentication EKU (1.3.6.1.5.5.7.3.1), an associated private key available to the server, and the domain controller’s fully qualified DNS name in its Subject CN or, preferably, a DNS Subject Alternative Name. The key must not require interactive strong private-key protection. Microsoft’s AD DS guidance also specifies using the Schannel cryptographic service provider (CSP). The issuing chain must be trusted by both the domain controller and the clients.

Use the exact name clients will enter. If an application connects to dc01.contoso.com, that FQDN must be covered by the certificate. If it connects to a legitimate service alias, that alias must also be covered and the endpoint design must ensure the certificate presented is valid for that name. Prefer DNS names over IP addresses: a certificate issued for a DNS identity will not validate for an IP unless the certificate explicitly includes that IP identity.

Choose the CA to match the clients

For an internal deployment, an existing Microsoft Enterprise CA is often the practical choice when clients can receive its root and intermediate certificates and the organization can manage enrollment and renewal. The Domain Controller certificate template is a natural starting point. A public CA can make sense where external clients genuinely require public trust and the endpoint has an appropriate public DNS identity, but a public certificate is not automatically the right choice for an internal domain controller. Do not expose LDAP to the Internet just to avoid distributing an internal CA certificate.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A self-signed certificate is generally limited to a controlled test or lab: every client that uses it must trust it, and replacement and renewal need deliberate handling. Microsoft’s AD DS certificate guidance describes the certificate criteria, stores, and enrollment options.

Enroll and install the certificate

For a domain controller enrolled from an Enterprise CA:

  1. Sign in with the required administrative rights and run certlm.msc.
  2. Open Certificates (Local Computer) > Personal > Certificates.
  3. Right-click Certificates, then choose All Tasks > Request New Certificate.
  4. Select the appropriate domain-controller certificate template and complete enrollment.
  5. Inspect the issued certificate. Confirm the Server Authentication EKU, DNS name, validity, and private-key association.
  6. If the certificate is in the Local Computer store, schedule and perform the required domain-controller restart.
  7. Repeat for every domain controller that needs to accept LDAPS connections.

AD DS can also use a certificate in the NTDS certificate store, which receives preferential treatment and can be detected without the same restart requirement documented for a certificate placed in the Local Computer store. Follow Microsoft’s store-specific procedure when using NTDS; do not assume the Local Computer restart guidance applies identically.

Rank #2
Apricorn 8GB Aegis Secure Key 3 NX 256-bit Encrypted FIPS 140-2 Level 3 Validated Secure USB 3.0 Flash Drive (ASK3-NX-8GB), Black
  • FIPS 140-2 Level 3 Validation
  • Aegis Configurator Compatible
  • Separate Admin and User Mode
  • Two Read-Only Modes
  • Data Recovery PINs

Watch for competing certificates. If several certificates in the Local Computer store meet the LDAPS criteria, Schannel may select the first valid one it finds rather than the one you intended. That can lead to a wrong-name certificate or differences between domain controllers, especially after renewal. Inspect the certificates in both relevant stores, remove or retire obsolete competitors where appropriate, and verify the certificate actually presented on the connection—not just the one visible in the enrollment console. Microsoft explains this selection issue in its LDAPS troubleshooting guidance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Open only the necessary ports and configure clients

Purpose TCP port
LDAP 389
LDAPS 636
Global Catalog LDAP 3268
Global Catalog LDAPS 3269

For typical LDAPS integrations, permit TCP 636 only from the networks that need directory access. Permit TCP 3269 only where clients need LDAPS access to a Global Catalog. These are distinct endpoints; 636 is not a substitute for 3269 when the application specifically needs Global Catalog access. Avoid broad public exposure unless there is a documented requirement and the endpoint is protected accordingly. See Microsoft’s AD DS port reference.

Configure each application using its product-specific labels, with values equivalent to:

Protocol: LDAPS
Host: dc01.contoso.com
Port: 636
TLS certificate validation: enabled
Trust: issuing root and intermediate CAs trusted by the client

For Global Catalog LDAPS, use port 3269. Do not disable certificate validation to make a connection succeed; repair the name, trust chain, or application trust store instead. Check DNS resolution and ensure firewalls, proxies, or load balancers are not unexpectedly terminating TLS or presenting a different certificate.

Verify LDAPS end to end

Test with Ldp.exe

  1. Run ldp.exe on a domain controller or domain-joined management computer.
  2. Select Connection > Connect.
  3. Enter the domain controller’s FQDN and port 636, then select SSL.
  4. Select OK. RootDSE information in the right pane indicates that an LDAP session was established over the TLS connection.

Repeat against port 3269 if Global Catalog LDAPS is required. Use the FQDN clients will use. A successful TCP handshake alone does not prove that certificate validation and TLS negotiation succeed. Ldp.exe is a useful connectivity check, but also test from the actual application host and runtime.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check the port and, optionally, inspect TLS

From PowerShell, test basic reachability:

Test-NetConnection dc01.contoso.com -Port 636

This confirms whether the TCP port is reachable; it does not by itself validate the certificate or prove that an LDAP bind works. On a system with OpenSSL, an optional TLS diagnostic is:

openssl s_client -connect dc01.contoso.com:636 
  -servername dc01.contoso.com 
  -showcerts

Inspect the certificate returned, including its subject, SAN, expiry, chain, and TLS negotiation result. OpenSSL output is a diagnostic aid, not a replacement for testing the application’s own trust and LDAP behavior.

Audit before requiring LDAP signing

Requiring signing is a policy change, not an automatic conversion of applications to LDAPS. A simple bind over non-TLS LDAP, or an unsigned SASL bind, may fail when the domain controller requires signing. Microsoft recommends identifying and migrating affected clients before enforcement.

To set the server policy, use Group Policy Management to edit the Default Domain Controllers Policy or a carefully scoped domain-controller GPO. Navigate to:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Computer Configuration
  > Policies
  > Windows Settings
  > Security Settings
  > Local Policies
  > Security Options

Set Domain controller: LDAP server signing requirements to Require signing only after assessing clients. The corresponding client setting is Network security: LDAP client signing requirements; set it to Require signing only where the client software supports it. The exact effect depends on the bind and transport in use. A client using correctly configured LDAPS is not made secure by server-side signing policy alone, nor should you assume that selecting “Require signing” changes a client’s port or protocol.

First review Directory Service events on domain controllers. Event 2887 summarizes unsigned LDAP binds over the preceding period; event 2886 is a reminder that signing is not required. To obtain more detail, including source client information, set the LDAP Interface Events diagnostic logging level to 2 (Basic); Microsoft documents Event 2889 for detailed unsigned-bind attempts. Events 2888 can indicate rejected unsigned binds. Identify owners, update client configuration or software, retest, and then enforce in a controlled rollout. See Microsoft’s LDAP signing deployment procedure.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Stage channel-binding policy as well

Channel binding is relevant to authentication over TLS, particularly with NTLM or simple bind. It uses a Channel Binding Token to tie authentication to the TLS session. A client or intermediary that does not support or preserve the expected binding can fail when policy is tightened.

On domain controllers, the policy is Domain controller: LDAP server channel binding token requirements. Start with an audit or compatibility-friendly setting, identify unsupported clients from Directory Service events, update libraries or appliances, and test through the real network path. Events 3039 and 3040 can indicate channel-binding problems or mismatches; 3041 records successful channel binding. Do not begin by enforcing the strictest setting across an untested estate.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Windows Server 2025 has stronger documented defaults for new AD deployments, including required LDAP signing and channel binding set to “When supported.” An upgrade preserves existing policy settings, so check effective policy instead of inferring it from the server version. Microsoft recommends gradual enforcement and monitoring, particularly during upgrades.

Troubleshoot common failures

Port 636 does not connect

  1. Confirm the FQDN resolves to the intended domain controller.
  2. Run Test-NetConnection dc01.contoso.com -Port 636 from the client network.
  3. Check host and network firewall rules, routing, and any security group restrictions.
  4. Confirm the domain controller has an eligible certificate in the Local Computer Personal or NTDS store.
  5. Check the Server Authentication EKU, FQDN, private key, validity, and trusted issuer chain.
  6. Confirm a required restart occurred for a certificate installed in the Local Computer store.
  7. Review Directory Service and Schannel logs, then test with Ldp.exe and the actual application.

The server presents the wrong certificate or the name does not match

Multiple eligible certificates can cause Schannel to select an unintended certificate. A name mismatch often means the client used an alias, short name, or IP not included in the certificate. Inspect certificates in both stores, remove obsolete competitors when safe, and ensure the client uses a DNS name covered by the certificate—or issue a certificate that includes the legitimate service name. Test the certificate presented on the wire.

The certificate chain is not trusted

The client may lack the internal root or an intermediate CA, may be unable to build the chain, or may have a separate application trust store. Revocation checking can also fail if required services are unreachable. Install the correct CA certificates using the client platform’s supported method and verify the chain. Microsoft documents this client-side check:

certutil -v -urlfetch -verify serverssl.cer

An application fails after signing is required

It may use a simple bind over non-TLS LDAP, unsigned SASL, an older library, or an appliance-specific setting. As a controlled recovery, roll back the enforcement change only if needed to restore service; then use events 2887 and 2889 to identify the source, confirm its bind method, configure LDAPS, StartTLS, or signed SASL according to the product’s documentation, and retest before re-enabling enforcement.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Channel binding fails

Check client support, TLS termination or interception by intermediaries, endpoint identity, and whether the client sends the expected token. Test with the final DNS name and certificate. Update the client or appliance, remove unnecessary TLS interception, and move from compatibility mode to enforcement only after successful testing.

Production checklist and renewal plan

  • Every intended domain controller has a valid certificate with Server Authentication EKU, a usable private key, and the DNS identity clients use.
  • Clients trust the issuing chain and validate the certificate; validation is not disabled.
  • TCP 636 is reachable only from approved networks; TCP 3269 is allowed where Global Catalog LDAPS is needed.
  • Ldp.exe succeeds against each relevant domain controller using its FQDN, SSL, and the required port.
  • Applications are configured for LDAPS or correctly implemented StartTLS, and their actual runtime trust stores are verified.
  • Unsigned LDAP sources and channel-binding compatibility have been assessed before policy enforcement.
  • Certificate renewal is owned and monitored. Before expiry, enroll the replacement, verify its identity and chain, check for competing certificates, and test what is presented by each domain controller.
  • Repeat application tests after certificate replacement and policy changes; document rollback and recovery steps.

LDAPS secures LDAP connections only. It does not encrypt Kerberos, SMB, RPC, DNS, or other traffic used by Active Directory, each of which needs its own appropriate controls. Microsoft Entra Domain Services is also a separate managed Azure service, not the same deployment model as self-managed AD DS; its secure LDAP endpoint has its own certificate, DNS, and network configuration requirements.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.