---
name: "ldap_search_ext_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_search_ext_sW"
---

# ldap\_search\_ext\_sW(3w)

## NAME

**ldap\_search\_ext\_sW** (WLDAP32.@)

## SYNOPSIS

ULONG CDECL  ldap\_search\_ext\_sW\
  (\
   WLDAP32\_LDAP\*         *ld*,\
   PWCHAR                *base*,\
   ULONG                 *scope*,\
   PWCHAR                *filter*, PWCHAR attrs\[\]  ULONG                 *attrsonly*,\
   PLDAPControlW\*        *serverctrls*,\
   PLDAPControlW\*        *clientctrls*,\
   struct l\_timeval\*     *timeout*,\
   ULONG                 *sizelimit*,\
   WLDAP32\_LDAPMessage\*\* *res*\
  )

## DESCRIPTION

Search a directory tree (synchronous operation).

## PARAMS

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

*base* **\[In\]**  Starting point for the search.

*scope* **\[In\]**  Search *scope*. One of **LDAP\_SCOPE\_BASE**, **LDAP\_SCOPE\_ONELEVEL** and **LDAP\_SCOPE\_SUBTREE**.

*filter* **\[In\]**  Search *filter*.

attrs **\[In\]**  Attributes to return.

*attrsonly* **\[In\]**  Return no values, only attributes.

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

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

*timeout* **\[In\]**  Timeout in seconds.

*sizelimit* **\[In\]**  Maximum number of entries to return. Zero means unlimited.

*res* **\[Out\]**  Results of the search operation.

## RETURNS

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

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

## NOTES

Call ldap\_msgfree to free the results.

## IMPLEMENTATION

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

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