---
name: "ldap_add_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_add_ext_sW"
---

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

## NAME

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

## SYNOPSIS

ULONG CDECL  ldap\_add\_ext\_sW\
  (\
   WLDAP32\_LDAP\*  *ld*,\
   PWCHAR         *dn*, LDAPModW\* attrs\[\]  PLDAPControlW\* *serverctrls*,\
   PLDAPControlW\* *clientctrls*\
  )

## DESCRIPTION

Add an entry to a directory tree (synchronous operation).

## PARAMS

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

*dn* **\[In\]**  **DN** of the entry to add.

attrs **\[In\]**  Pointer to an array of LDAPModW structures, each specifying an attribute and its values to add.

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

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

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