Directory Services |
The ldap_rename_ext function starts an asynchronous operation that changes the distinguished name of an entry in the directory. This function is available effective with LDAP 3.
ULONG ldap_rename_ext( LDAP* ld, PWCHAR dn, PWCHAR NewRDN, PWCHAR NewParent, INT DeleteOldRdn, PLDAPControl* ServerControls, PLDAPControl* ClientControls, ULONG* MessageNumber );
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.
This function provides extended renaming operations. For example, you can pass controls that separate the parent from the relative distinguished name, for clarity.
Multithreading: Calls to ldap_rename_ext are thread-safe.
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension
on Windows NT 4.0 SP6a and Windows 95/98/Me.
Unicode: Implemented as Unicode and ANSI versions on all
platforms.
Header: Declared in Winldap.h.
Library: Use Wldap32.lib.
Extended Controls, Using Controls, Functions, Modifying a Directory Entry