---
name: "ldap_get_dnW"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/ldap_get_dnW"
---

# ldap\_get\_dnW(3w)

## NAME

**ldap\_get\_dnW** (WLDAP32.@)

## SYNOPSIS

PWCHAR CDECL  ldap\_get\_dnW\
  (\
   WLDAP32\_LDAP\*        *ld*,\
   WLDAP32\_LDAPMessage\* *entry*\
  )

## DESCRIPTION

Retrieve the **DN** from a given **LDAP** message.

## PARAMS

*ld* **\[In\]**  Pointer to an **LDAP** context.

*entry* **\[In\]**  LDAPMessage structure to retrieve the **DN** from.

## RETURNS

**Success:** Pointer to a string that contains the **DN**.

**Failure:** **NULL**.

## NOTES

Free the string with ldap\_memfree.

## IMPLEMENTATION

Declared in **"winldap\_private.h"**.

Implemented in **"dlls/wldap32/dn.c"**.
