---
name: "ldap_sasl_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_sasl_bindW"
---

# ldap\_sasl\_bindW(3w)

## NAME

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

## SYNOPSIS

ULONG CDECL  ldap\_sasl\_bindW\
  (\
   WLDAP32\_LDAP\*  *ld*,\
   const PWCHAR   *dn*,\
   const PWCHAR   *mechanism*,\
   const BERVAL\*  *cred*,\
   PLDAPControlW\* *serverctrls*,\
   PLDAPControlW\* *clientctrls*,\
   int\*           *message*\
  )

## DESCRIPTION

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

## PARAMS

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

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

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

*cred* **\[In\]**  Credentials.

*serverctrls* **\[In\]**  Array of **LDAP** server controls.

*clientctrls* **\[In\]**  Array of **LDAP** client controls.

*message* **\[Out\]**  Message Id of the bind operation.

## RETURNS

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

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

## NOTES

The *serverctrls* and *clientctrls* parameters are optional and should be set to **NULL** if not used.

## IMPLEMENTATION

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

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