# Ldapdomaindump

## Overview

**Ldapdomaindump** works by connecting to  the LDAP server/Domain Controller, and querying it for information about users, groups, etc. It takes the responses from the server and puts it into a nice readable format for us to read.

**Impacket-ntlmrelayx** uses this tool by automatically default but if the[ IPv6 DNS Takeover](/active-directory/initial-attack-strategy/ipv6-attacks.md) attack didn't work there is a manual way of doing it.

## Domain Enumeration

```bash
sudo ldapdomaindump ldaps://192.168.1.129 -u 'PNPT\greg' -p 'Password1' 
```


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pnpt.adot8.com/active-directory/post-compromise-enumeration/ldapdomaindump.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
