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

# ldap\_simple\_bindW(3w)

## NAME

**ldap\_simple\_bindW** (WLDAP32.@)

## SYNOPSIS

ULONG CDECL  ldap\_simple\_bindW\
  (\
   WLDAP32\_LDAP\* *ld*,\
   PWCHAR        *dn*,\
   PWCHAR        *passwd*\
  )

## DESCRIPTION

Authenticate with an **LDAP** server (asynchronous operation).

## PARAMS

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

*dn* **\[In\]**  **DN** of entry to bind as.

*passwd* **\[In\]**  Password string.

## RETURNS

**Success:** Message Id of the bind operation.

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

## NOTES

Set *dn* and *passwd* to **NULL** to bind as an anonymous user.

## IMPLEMENTATION

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

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