Review agent · Identity & access

Directory & LDAP integration

Reviews Active Directory and LDAP code for injection, cleartext binds and hard-coded credentials.

auth/ldap.py1user = form["username"]2flt = f"(uid={user})"3conn = ldap.initialize(4 "ldap://dc.corp.local")LDAPwhat this review answersInput in filters or DNs unescaped?Cleartext ldap:// instead of LDAPS?Hard-coded bind credentials?$ verdict REAL ISSUE$ fix escape filter input, use LDAPS▍

Illustrative example of how this agent reviews a finding.

Why this agent matters

In companies that use a directory, it is the keys to everything: user lookup, group membership, sign-in. LDAP injection or a cleartext bind can expose or bypass it.

It only applies to repos that integrate with a directory, which is exactly why it gets a specialist — generic reviewers rarely know LDAP filter escaping or the LDAP vs LDAPS distinction.

What it checks

  • User input placed in LDAP filters or DNs without escaping
  • Cleartext LDAP instead of LDAPS
  • Hard-coded bind credentials
  • Weak or omitted bind authentication

When it marks a finding as a likely false positive

  • Filter and DN input is escaped
  • Binds use LDAPS with credentials from a secrets manager

The fix it suggests

  • Escaping LDAP filter and DN input
  • Switching to LDAPS
  • Sourcing bind credentials from a secrets manager

Scope and limits

This agent validates findings reported by Semgrep, Gitleaks and Trivy; it doesn't hunt for new bugs on its own. A finding reaches it when its CWE or rule/path keywords match this vulnerability class. It sees only the minimal code around the finding, with secrets redacted, and returns a verdict with a confidence score, a plain-English explanation and a suggested patch.

Common questions

Does this agent run on every repository?

Only findings that match LDAP / directory CWEs or keywords are routed to it, so repos without a directory integration never use it.

Related agents

See all 20 review agents → · Agent setup reviewer · How the pipeline works

Run the Directory & LDAP integration agent on your repository

100 free credits, no credit card. Every finding comes with a verdict and a fix.

Get started free