Platform SDK: Active Directory, ADSI, and Directory Services |
The ldap_modify_ext_s function changes an existing entry.
ULONG ldap_modify_ext_s( LDAP* ld, PCHAR dn, LDAPMod* mods[], PLDAPControl* ServerControls, PLDAPControl* ClientControls );
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.
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.
Windows NT/2000: Requires Windows NT 4.0 SP4 or later.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in Winldap.h.
Library: Use Wldap32.lib.
Unicode: Declared as Unicode and ANSI prototypes.
Functions, ldap_modify, ldap_modify_s, ldap_result, Modifying a Directory Entry, Return Values