# dsconfigad

> retrieves/changes configuration for Directory Services Active Directory Plugin.

This tool allows command-line configuration of the Active Directory Plug-in. dsconfigad has the same functionality for configuring the Active Directory plugin as the Directory Utility application. It requires "admin" privileges to the local workstation and to the Directory to make changes.

- Page: https://loobins.io/binaries/dsconfigad/
- Author: Ethan Nay
- Created: 2023-08-23
- Tactics: Discovery

## Paths

- `/usr/sbin/dsconfigad`

## Example Use Cases

### Retrieves the Active Directory configuration

Retrieves the Active Directory configuration

```bash
dsconfigad -show
```

- Tactics: Discovery
- Tags: bash, zsh

### Retrieves the Active Directory name

Retrieves the Active Directory name

```bash
dsconfigad -show |awk '/Active Directory Domain/{print $NF}'
```

- Tactics: Discovery
- Tags: bash, zsh

## Detections

- No detections at time of publishing

## Resources

- [macOS/binaries/dsconfigad](https://macosbin.com/bin/dsconfigad)
- [dsconfigad man page](https://www.unix.com/man-page/osx/8/dsconfigad/)
