---
name: "ldap_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_bindW"
---

# ldap\_bindW(3w)

## NAME

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

## SYNOPSIS

ULONG CDECL  ldap\_bindW\
  (\
   WLDAP32\_LDAP\* *ld*,\
   PWCHAR        *dn*,\
   PWCHAR        *cred*,\
   ULONG         *method*\
  )

## DESCRIPTION

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

## PARAMS

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

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

*cred* **\[In\]**  Credentials (e.g. password string).

*method* **\[In\]**  Authentication *method*.

## RETURNS

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

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

## NOTES

Only **LDAP\_AUTH\_SIMPLE** is supported (just like native).

## IMPLEMENTATION

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

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