---
UID: NF:azroles.IAzClientContext2.put_LDAPQueryDN
title: IAzClientContext2::put_LDAPQueryDN (azroles.h)
description: Retrieves or sets the domain name of the directory object to be used during evaluation of LDAP query groups.
old-location: security\iazclientcontext2_ldapquerydn.htm
tech.root: SecAuthZ
ms.assetid: 3d06e240-10d9-4d58-baae-c3d2a38ac556
ms.date: 12/05/2018
ms.keywords: IAzClientContext2 interface [Security],LDAPQueryDN property, IAzClientContext2.LDAPQueryDN, IAzClientContext2.put_LDAPQueryDN, IAzClientContext2::LDAPQueryDN, IAzClientContext2::get_LDAPQueryDN, IAzClientContext2::put_LDAPQueryDN, LDAPQueryDN property [Security], LDAPQueryDN property [Security],IAzClientContext2 interface, azroles/IAzClientContext2::LDAPQueryDN, azroles/IAzClientContext2::get_LDAPQueryDN, azroles/IAzClientContext2::put_LDAPQueryDN, put_LDAPQueryDN, security.iazclientcontext2_ldapquerydn
f1_keywords:
- azroles/IAzClientContext2.LDAPQueryDN
dev_langs:
- c++
req.header: azroles.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: None supported
req.target-min-winversvr: Windows Server 2008, Windows Server 2003 with SP1 [desktop apps only]
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: Azroles.lib
req.dll: Azroles.dll
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- Azroles.dll
api_name:
- IAzClientContext2.LDAPQueryDN
- IAzClientContext2.get_LDAPQueryDN
- IAzClientContext2.put_LDAPQueryDN
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# IAzClientContext2::put_LDAPQueryDN


## -description


The <b>LDAPQueryDN</b> property retrieves or sets the domain name of the directory object to be used during evaluation of LDAP query groups.

This property is read/write.


## -parameters

