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

# ldap\_ufn2dnW(3w)

## NAME

**ldap\_ufn2dnW** (WLDAP32.@)

## SYNOPSIS

ULONG CDECL  ldap\_ufn2dnW\
  (\
   PWCHAR  *ufn*,\
   PWCHAR\* *dn*\
  )

## DESCRIPTION

Convert a user-friendly name to a **DN**.

## PARAMS

*ufn* **\[In\]**  User-friendly name to convert.

*dn* **\[Out\]**  Receives a pointer to a string containing the **DN**.

## RETURNS

**Success:** **LDAP\_SUCCESS**

**Failure:** An **LDAP** error code.

## NOTES

Free the string with ldap\_memfree.

## IMPLEMENTATION

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

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