---
name: "ldap_compare_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_compare_sW"
---

# ldap\_compare\_sW(3w)

## NAME

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

## SYNOPSIS

ULONG CDECL  ldap\_compare\_sW\
  (\
   WLDAP32\_LDAP\* *ld*,\
   PWCHAR        *dn*,\
   PWCHAR        *attr*,\
   PWCHAR        *value*\
  )

## DESCRIPTION

Check if an attribute has a certain *value* (synchronous operation).

## PARAMS

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

*dn* **\[In\]**  **DN** of entry to compare *value* for.

*attr* **\[In\]**  Attribute to compare *value* for.

*value* **\[In\]**  Value to compare.

## RETURNS

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

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

## IMPLEMENTATION

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

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