ad_ldap_query
Run LDAP queries against a domain controller to find matching Active Directory objects and return selected attributes for directory searches and troubleshooting.
Instructions
Run an LDAP query against the DC. Returns matching objects with specified attributes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filter": "<filter>"
},
"name": "ad_ldap_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results to return (default: 10, max: 1000) | |
| filter | Yes | LDAP filter, e.g., '(objectClass=user)' or '(&(objectClass=user)(sAMAccountName=alice))' | |
| target | No | Target DC name from credentials (optional) | |
| attributes | No | Attributes to return, e.g., ['sAMAccountName', 'memberOf']. Empty = all. | |
| searchBase | No | Search base DN, e.g., 'OU=Users,DC=corp,DC=local'. Leave empty for domain root. |