# Verify LDAP connectivity and certificates

Verify LDAP connectivity and certificates on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

ADEssentials

PowerShell Active Directory helper functions to manage healthy Active Directory

[View on GitHub](https://github.com/EvotecIT/ADEssentials) [Visit Website](#) [Releases](https://github.com/EvotecIT/ADEssentials/releases/tag/v1.0.4) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/ADEssentials)

Stars**562**

Forks**69**

Open issues**5**

PowerShell Gallery downloads**627126**

Release**v1.0.7**

Language: PowerShell Updated: 2026-11-13

Curated Examples

Test LDAP endpoints and certificate validation from a PowerShell-based AD health workflow.

This example is useful when you need a quick LDAP verification pass before deeper Active Directory troubleshooting.

It comes from the source example at `Examples/Example.06-TestLDAPPorts.ps1`.

## When to use this pattern

- You need to confirm LDAP connectivity to domain controllers.
- You want to validate certificate-backed LDAP communication.
- You are checking whether a directory issue is network, certificate, or service related.

## Example

```powershell
Import-Module .\ADEssentials.psd1 -Force

Test-LDAP -IncludeDomainControllers 'dc01.corp.example.com' -Identity "krbtgt" -Verbose | Format-List *
Test-LDAP -ComputerName 'corp.example.com' -VerifyCertificate -Verbose | Format-Table
Test-LDAP -VerifyCertificate -Verbose -IncludeDomains 'corp.example.com' | Format-Table
```

## What this demonstrates

- testing specific domain controllers directly
- validating LDAP over certificate-backed channels
- comparing narrow and broad validation runs from the same command family

## Source

- [Example.06-TestLDAPPorts.ps1](https://github.com/EvotecIT/ADEssentials/blob/master/Examples/Example.06-TestLDAPPorts.ps1)

<!-- PowerForge markdown artifact sha256:B07285519CD42FAE09EF9E9408D11204A09E8D890549D1CF1405679F8EBB2077 -->
