#include <ldap.h>
int ldap_rename_s(
LDAP *ld,
char *dn,
char *newrdn,
char *newparent,
int deleteoldrdn,
LDAPControl **serverctrls,
LDAPControl **clientctrls)
|
In LDAP V2, the ldap_modrdn_s() API were used to change the name of an LDAP entry synchronously. 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_s() routine is used to change the name of an entry, and the use of the ldap_modrdn_s(). The ldap_modrdn_s() routine is deprecated.
The ldap_rename_s() routine initiates synchronous modify DN operation.
No OS/400 authority is required. All authority checking is done by the LDAP server.
If ldap_rename_s() 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_s API.
ldap_rename() -- Asynchronously 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_s() 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] |