---
name: "ldap_sasl_bind_sW"
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_bind_sW"
---

# ldap\_sasl\_bind\_sW(3w)

## NAME

**ldap\_sasl\_bind\_sW** (WLDAP32.@)

## SYNOPSIS

ULONG CDECL  ldap\_sasl\_bind\_sW\
  (\
   WLDAP32\_LDAP\*  *ld*,\
   const PWCHAR   *dn*,\
   const PWCHAR   *mechanism*,\
   const BERVAL\*  *cred*,\
   PLDAPControlW\* *serverctrls*,\
   PLDAPControlW\* *clientctrls*,\
   PBERVAL\*       *serverdata*\
  )

## DESCRIPTION

Authenticate with an **LDAP** server using **SASL** (synchronous 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.

*serverdata* **\[Out\]**  Authentication response from the server.

## 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"**.
