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

# ldap\_bind\_sW(3w)

## NAME

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

## SYNOPSIS

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

## DESCRIPTION

Authenticate with an **LDAP** server (synchronous 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:** **LDAP\_SUCCESS**

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

## IMPLEMENTATION

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

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