Skip to content
Sponsor
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

LDAP query policy count should be retrievable

AD-CFG-06InfoActive DirectoryDirectory configuration

Part of Active Directory · Active Directory · Directory configuration · All checks

Run this check
Invoke-Maester -TestId AD-CFG-06

LDAP query policies define resource limits for directory queries (for example, controlling maximum result sizes and query behaviors). Weak or missing limits can enable resource exhaustion against AD through:

  • Expensive or unbounded queries
  • Large searches that degrade DC performance
  • Increased likelihood of availability-impacting denial-of-service (DoS)

This test helps ensure your directory query surface is bounded, making it harder for both accidental misconfigurations and malicious users to overwhelm AD.

Operational

  • Set LDAP query policies to enforce practical limits aligned with your operational needs.
  • Ensure policies are applied consistently across relevant directory contexts/partitions.
  • Combine with access controls: even with good limits, ensure only authorized clients can perform heavy queries.

This test reads LDAP query policy configuration from AD and produces a count/visibility metric indicating where query policies are present and/or set according to your expected baseline.

  • Test-MtAdDefaultQueryPolicy - Validates the baseline LDAP query limits.
Every attribute of this check
FieldValue
Test IDAD-CFG-06
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureDirectory configuration
AreaInfrastructure hardening
Resource typePolicy
MITRE ATT&CKNone
PowerShell testTest-MtAdLdapQueryPolicyCount
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:Configuration/*:ReadProperty