Share via


ldap_modify_ext_s (Compact 2013)

3/26/2014

This function changes an existing entry.

Syntax

ULONG ldap_modify_ext_s(
  LDAP* ld,
  UNICODE PTCHAR dn,
  LDAPMod* mods[],
  LDAPControl** ServerControls,
  LDAPControl** ClientControls
);

Parameters

  • ld
    [in] Session handle.
  • dn
    [in] Name of the entry to modify.
  • mods
    [in] Null-terminated array of modifications to make to the entry.
  • ServerControls
    [in] List of LDAP server controls.
  • ClientControls
    [in] List of client controls.

Return Value

If this function succeeds, the return value is LDAP_SUCCESS.

If this function fails, it returns an error code. See the LDAP_RETCODE enumeration for a list of possible return values.

Remarks

This 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 this function include those of ldap_modify_s. The extended routine includes additional parameters to support client and server controls.

In a multithreading environment, calls to this function are thread-safe.

Requirements

Header

winldap.h

Library

wldap32.lib

See Also

Reference

LDAP Directory Entry Functions
LDAP_RETCODE
ldap_modify
ldap_modify_s
ldap_result