Collection Strategies

WolfGuard 1.8.0+ can reach your identity data through five different strategies. You can configure several simultaneously — they are tried in priority order and WolfGuard falls back to the next one whenever a strategy fails.

Strategy matrix

Strategy On-prem? Security License flag
ldap_direct Yes LDAPS directory_multi_strategy
ldap_tunnel Yes (bastion) LDAPS + SSH directory_multi_strategy
winrm Yes WinRM/HTTPS directory_winrm (Enterprise)
intune No Graph + TLS directory_intune (Standard+)
standalone_agent No mTLS standalone_audit (Standard+)

ldap_direct — Active Directory direct

Your WolfGuard host can reach a domain controller directly on port 389 (plain LDAP), 636 (LDAPS), or any custom port. The simplest and fastest option for on-premises AD environments where firewall rules allow direct LDAP traffic.

Prerequisites

  • TCP 636 (LDAPS) or TCP 389 (LDAP + STARTTLS) from WolfGuard host to DC
  • Service account with Directory Service read permissions — no admin rights needed
  • CA cert accessible on WolfGuard host if using a private CA
ldap_direct config
{
  "strategy_type": "ldap_direct",
  "priority": 10,
  "config": {
    "server": "dc01.corp.local",
    "port": 636,
    "bind_dn": "CN=svc-wg,OU=SvcAcct,DC=corp,DC=local",
    "bind_password": "**see Vault**",
    "search_base": "DC=corp,DC=local",
    "use_ssl": true,
    "validate_cert": true,
    "timeout": 30
  }
}

ldap_tunnel — AD behind an SSH bastion

Your domain controllers are on a segmented network and only reachable through a jump host. WolfGuard opens an SSH tunnel on startup and forwards LDAP traffic through it.

Prerequisites

  • SSH bastion accessible from WolfGuard on TCP 22 (or custom port)
  • Bastion user with AllowTcpForwarding yes in sshd_config
  • SSH key (preferred) or password — stored in Coderaft Vault
  • DC reachable from bastion on TCP 389/636

Note: adds ~20–50 ms latency overhead. SSH connection drop causes collection to fail within one run.

ldap_tunnel config
{
  "strategy_type": "ldap_tunnel",
  "priority": 30,
  "config": {
    "ssh_jump_host": "bastion.corp.local",
    "ssh_jump_port": 22,
    "ssh_jump_user": "svc-wg",
    "ssh_jump_key": "**see Vault**",
    "target_ldap_host": "dc01.internal",
    "target_ldap_port": 636,
    "bind_dn": "CN=svc-wg,OU=SvcAcct,DC=corp,DC=local",
    "bind_password": "**see Vault**",
    "search_base": "DC=corp,DC=local",
    "use_ssl": true,
    "timeout": 30
  }
}

winrm — Windows admin host

Enterprise license required — directory_winrm feature flag.

Only WinRM/HTTPS (port 5986) is allowed to a Windows admin host. WolfGuard runs PowerShell RSAT cmdlets remotely to enumerate AD objects.

Prerequisites

  • WinRM HTTPS listener active: Enable-PSRemoting
  • Valid TLS cert on the WinRM endpoint
  • Service account member of Remote Management Users + RSAT AD tools installed
winrm config
{
  "strategy_type": "winrm",
  "priority": 40,
  "config": {
    "host": "adminhost.corp.local",
    "port": 5986,
    "username": "CORP\\svc-wg",
    "password": "**see Vault**",
    "transport": "ntlm",
    "use_ssl": true,
    "server_cert_validation": "validate",
    "timeout": 60
  }
}

intune — 100% cloud with Microsoft Intune

Standard license or above required — directory_intune feature flag.

Your fleet is managed exclusively through Microsoft Intune — no on-premises Active Directory exists. WolfGuard uses the Microsoft Graph API to enumerate devices and their compliance state.

Azure App Registration — additional permission required

DeviceManagementManagedDevices.Read.All (Application permission, admin consent required). Reuses the existing tenant configuration — no additional credentials needed.

intune config (no extra credentials)
{
  "strategy_type": "intune",
  "priority": 20,
  "config": {}
}

standalone_agent — Non-domain hosts

Standard license or above required — standalone_audit feature flag.

Your hosts are not joined to any domain (Windows workgroup, standalone Linux, macOS, etc.). A lightweight WolfGuard agent is installed on each host and pushes posture data on a schedule via mTLS.

See Endpoint Agents for full installation instructions.

Auto-detect

The Setup Wizard includes an Auto-detect best strategy button that probes all strategies for which credentials have been entered and recommends the simplest working option. Typical wall-clock time: 2–10 s depending on network latency.

Auto-detect probe
curl -X POST https://wolfguard.example.com/api/entraguard/collection/detect \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "ldap_direct": { "server": "dc01.corp.local", "port": 636, ... } }'

# Response
{
  "recommended": "ldap_direct",
  "confidence": 1.0,
  "tested": [
    { "strategy": "ldap_direct", "status": "ok", "reason": "LDAP bind successful", "latency_ms": 142 },
    { "strategy": "intune",      "status": "ok", "reason": "Graph token valid",    "latency_ms": 380 }
  ],
  "explain": "ldap_direct succeeded in 142 ms and requires the least infrastructure."
}

API reference

Method Path Purpose
POST/api/entraguard/collection/detectCredential-driven probe (Setup Wizard)
GET/api/entraguard/directory/strategiesList persisted strategies
POST/api/entraguard/directory/strategiesRegister or update a strategy
POST/api/entraguard/directory/strategies/{id}/testTest a single persisted strategy
POST/api/entraguard/directory/strategies/run-collectionTrigger failover-aware collection

All endpoints require an admin user and the directory_multi_strategy license feature.

Next steps