Export (0) Print
Expand All
Expand Minimize

ldap_modify_ext_s function

The ldap_modify_ext_s function changes an existing entry.

Syntax


ULONG ldap_modify_ext_s(
  _In_  LDAP *ld,
  _In_  PCHAR dn,
  _In_  LDAPMod *mods[],
  _In_  PLDAPControl *ServerControls,
  _In_  PLDAPControl *ClientControls
);

Parameters

ld [in]

The session handle.

dn [in]

A pointer to a null-terminated string that contains the name of the entry to modify.

mods [in]

A null-terminated array of modifications to make to the entry.

ServerControls [in]

A list of LDAP server controls.

ClientControls [in]

A list of client controls.

Return value

If the function succeeds, the return value is LDAP_SUCCESS.

If the function fails, it returns an error code. See Return Values for more information.

Remarks

The ldap_modify_ext_s function initiates a synchronous operation to modify an existing entry. If values are being added or replaced in the entry, the function creates the attribute, if necessary. If values are being deleted, and no values remain, the function removes the attribute. All modifications are performed in the order in which they are listed.

The parameters and effects of ldap_modify_ext_s subsume those of ldap_modify_s. The extended routine includes additional parameters to support client and server controls.

Multithreading: Calls to ldap_modify_ext_s are thread-safe.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winldap.h

Library

Wldap32.lib

DLL

Wldap32.dll

Unicode and ANSI names

ldap_modify_ext_sW (Unicode) and ldap_modify_ext_sA (ANSI)

See also

Extended Controls
Using Controls
Functions
LDAP
LDAPMod
ldap_modify
ldap_modify_s
ldap_result
Modifying a Directory Entry
Return Values

 

 

Show:
© 2014 Microsoft