> For the complete documentation index, see [llms.txt](https://docs.apono.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apono.io/metadata-for-integration-config/integration-metadata/windows-domain-controller.md).

# Windows Domain Controller

A Windows Domain Controller is the hub of network management in a Windows domain, handling user authentication, resource access, and security policies.

## Example Usage

***

{% tabs %}
{% tab title="Terraform" %}
{% code title="windows-domain-controller-integration.tf" %}

```tf
resource "apono_integration" "windows-domain-controller-integration" {
  name                     = "Windows Domain Controller"
  type                     = "windows-domain-controller"
  connector_id             = "apono-connector-id"
  connected_resource_types = ["windows-domain-controller-server"]
  metadata = {
    host = "<Host>"
    port = "<WinRM Port>"
    rdp_port = "<RDP Port>"
    ssl = "<Use SSL connection>"
    email_selector_field_name_override = "<User Email Attribute Name>"
  }
  kubernetes_secret = {
    name      = "name_template_value"
    namespace = "namespace_template_value"
  }
}
```

{% endcode %}
{% endtab %}

{% tab title="Terraform V2" %}
{% code title="windows-domain-controller-integration.tf" %}

```tf
resource "apono_resource_integration" "windows-domain-controller-integration" {
  name                     = "Windows Domain Controller"
  type                     = "windows-domain-controller"
  connector_id             = "apono-connector-id"
  connected_resource_types = ["windows-domain-controller-server"]
  integration_config = {
    host = "<Host>"
    port = "<WinRM Port>"
    rdp_port = "<RDP Port>"
    ssl = "<Use SSL connection>"
    email_selector_field_name_override = "<User Email Attribute Name>"
  }
  secret_store_config = {
    kubernetes = {
      name      = "name_template_value"
      namespace = "namespace_template_value"
    }
}
```

{% endcode %}
{% endtab %}

{% tab title="Public API" %}
{% code title="windows-domain-controller-integration.json" %}

```json
{
    "windows-domain-controller-integration": {
        "name": "Windows Domain Controller",
        "type": "windows-domain-controller",
        "connector_id": "apono-connector-id",
        "connected_resource_types": [
            "windows-domain-controller-server"
        ],
        "integration_config": {
            "host": "<Host>",
            "port": "<WinRM Port>",
            "rdp_port": "<RDP Port>",
            "ssl": "<Use SSL connection>",
            "email_selector_field_name_override": "<User Email Attribute Name>",
        },
	"secret_store_config": {
    	    "name": "name_template_value",
    	    "namespace": "namespace_template_value"
  	    }
    }
}
```

{% endcode %}
{% endtab %}
{% endtabs %}

## Schema

***

* `type` windows-domain-controller
* `connected_resource_types` List of resource types to sync.

<details>

<summary>Available resource types you can use</summary>

* windows-domain-controller-server
* windows-domain-controller-server-group

</details>

### Integration Config

***

* `host` (Required | String) Host
* `port` (Required | String) WinRM Port
  * Default value: `5985`
* `rdp_port` (Optional | String) RDP Port
  * Default value: `3389`
* `ssl` (Required | String) Use SSL connection
  * Default value: `false`
  * Possible values: false, true
* `email_selector_field_name_override` (Optional | String) User Email Attribute Name
  * Default value: `UserPrincipalName`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.apono.io/metadata-for-integration-config/integration-metadata/windows-domain-controller.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
