#include <ldap.h>
int ldap_rename(
LDAP *ld,
char *dn,
char *newrdn,
char *newparent,
int deleteoldrdn,
LDAPControl **serverctrls,
LDAPControl **clientctrls,
int *msgidp)
|
In LDAP V2, the ldap_modrdn() API were used to change the name of an LDAP entry. It could only be used to change the least significant component of a name (the RDN or relative distinguished name). LDAP V3 provides the Modify DN protocol operation that allows more general name change access. The ldap_rename() routine is used to change the name of an entry, and the use of the ldap_modrdn(). The ldap_modrdn() routine is deprecated.
The ldap_rename() routine initiates an asynchronous modify DN operation
No OS/400 authority is required. All authority checking is done by the LDAP server.
If ldap_rename() is not successful, an error code will be returned. See LDAP Client API Error Conditions for possible LDAP error code values.
The following message may be set from this function.
CPF3CF2 E Error(s) occurred during running of ldap_rename API.
ldap_rename_s() -- Synchronously rename an entry.
ldap_modrdn() -- Asynchronously modify the RDN of
an entry (deprecated).
ldap_modrdn_s() -- Synchronously modify the RDN of an entry (deprecated).
The ldap_rename() API supports LDAP V3 server controls and client controls.
|
Top
| LDAP APIs List APIs by category |
| [Information Center Home Page | Feedback ] | [Legal | AS/400 Glossary] |