# ZPM Proxy - How to Configure On-Premise AD (LDAP) Write-Down

**URL:** <https://learn.goziro.com/t/zpm-proxy-how-to-configure-on-premise-ad-ldap-write-down/57>\
**Category:** ⚙️ Setup Guides\
**Tags:** zpm-proxy\
**Created:** [August 22, 2024, 8:38pm UTC](https://learn.goziro.com/t/zpm-proxy-how-to-configure-on-premise-ad-ldap-write-down/57 "2024-08-22T20:38:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sean](https://learn.goziro.com/user_avatar/learn.goziro.com/sean/32/14_2.png) [@Sean](https://learn.goziro.com/u/Sean)\
**Post date:** [August 22, 2024, 8:38pm UTC](https://learn.goziro.com/t/zpm-proxy-how-to-configure-on-premise-ad-ldap-write-down/57/1 "2024-08-22T20:38:47Z")

</div>

> ⚠ The following article assumes that the **ZPM Proxy is configured and enabled**. For instructions on how to setup your proxy see [https://learn.goziro.com/t/zpm-proxy-how-to-setup-connection-between-zpm-and-proxy/80](https://learn.goziro.com/t/zpm-proxy-how-to-setup-connection-between-zpm-and-proxy/80)

# How to Configure Active Directory AD (LDAP) write-down

## 1 Configure LDAP settings on the Proxy Server

- **1.1** Using your browser login to Proxy server using the machine’s `hostname` or `ip`.

- **1.2** Go to _ **Settings** _ via the gear in top right corner, then to _ **System \> LDAP Management** _.  

- **1.3** Fill in the required information and click _ **Save** _ at the bottom right of the page.

## 2. Turn on _Write Down to On-Premise AD_ feature Toggle in ZPM

- **2.1.** Login to ZPM and go to _ **Settings \> Proxy Server Management \> Proxy Feature Settings** _
- **2.2** Turn on _ **Write Down to On-Premise AD** _ feature toggle.

## 3. Configure your ZPM Dial Plan(s) to Write Down to On-Premise AD

- **3.1** Scroll to the bottom of the dial plan group.
- **3.2** Enable the _ **Write Down to On-Premise AD** _ toggle to expose the settings
- **3.3** Define the specific phone number attribute(s) for ZPM to update in your _ **On-Premise AD** _ and define the value. A flexible expression editor creates the attribute value to be written.

> **EXAMPLE**  
> Users are assigned a DID and the number needs to be written to the `telephoneNumber` attribute with dashes in _ **On-Premise AD** _ (e.g. User’s lineUri is `+913367520922` and the value needed in `telephoneNumber` attribute is `+91-33-6752-0922`)
> 
> - The required expression is `{{ first 3 did }}-{{ last 2 (first 5 did) }}-{{ last 4 (first 9 did) }}-{{ last 4 did}}`
> 
> ![Example of expression editor in Dial Plan to Write Down to AD](https://learn.goziro.com/uploads/default/original/1X/32cb83e9180a1af15a047661f95a06aedd39f28a.png)

- **3.4** Save your Dial Plan. ZPM will now update the **On-Premise Active Directory (AD/LDAP)** whenever a phone number is assigned to a user from the specified dial plan. Additionally, feedback on any misconfiguration will be provided if the number in AD is not set correctly.

## Example of the AD Write-Down in Action 🎬

[^1]: Example of the required attributes for the LDAP Service Account.

 ![image](https://learn.goziro.com/uploads/default/original/1X/efc37a3097703c1319496daef822a9dd4ff76a10.png)
