1LDAP_MODRDN(3)             Library Functions Manual             LDAP_MODRDN(3)
2
3
4

NAME

6       ldap_modrdn,  ldap_modrdn_s,  ldap_modrdn2, ldap_modrdn2_s - Perform an
7       LDAP modify RDN operation
8

LIBRARY

10       OpenLDAP LDAP (libldap, -lldap)
11

SYNOPSIS

13       #include <ldap.h>
14
15       int ldap_modrdn(ld, dn, newrdn)
16       LDAP ∗ld;
17       char ∗dn, ∗newrdn;
18
19       int ldap_modrdn_s(ld, dn, newrdn)
20       LDAP ∗ld;
21       char ∗dn, ∗newrdn;
22
23       int ldap_modrdn2(ld, dn, newrdn, deleteoldrdn)
24       LDAP ∗ld;
25       char ∗dn, ∗newrdn;
26       int deleteoldrdn;
27
28       int ldap_modrdn2_s(ld, dn, newrdn, deleteoldrdn)
29       LDAP ∗ld;
30       char ∗dn, ∗newrdn;
31       int deleteoldrdn;
32

DESCRIPTION

34       The ldap_modrdn() and ldap_modrdn_s() routines perform an  LDAP  modify
35       RDN  operation.  They both take dn, the DN of the entry whose RDN is to
36       be changed, and newrdn, the new RDN to give the entry.  The old RDN  of
37       the entry is never kept as an attribute of the entry.  ldap_modrdn() is
38       asynchronous, returning the message id of the operation  it  initiates.
39       ldap_modrdn_s()  is synchronous, returning the LDAP error code indicat‐
40       ing the success or failure of the operation.  Use of these routines  is
41       deprecated.  Use the versions described below instead.
42
43       The  ldap_modrdn2()  and ldap_modrdn2_s() routines also perform an LDAP
44       modify RDN operation, taking the same parameters as  above.   In  addi‐
45       tion,  they  both  take  the  deleteoldrdn parameter which is used as a
46       boolean value to indicate whether the old RDN values should be  deleted
47       from the entry or not.
48

ERRORS

50       The  synchronous  (_s)  versions of these routines return an LDAP error
51       code, either LDAP_SUCCESS or an error if there was trouble.  The  asyn‐
52       chronous  versions  return  -1 in case of trouble, setting the ld_errno
53       field of ld.  See ldap_error(3) for more details.
54

SEE ALSO

56       ldap(3), ldap_error(3)
57

ACKNOWLEDGEMENTS

59       OpenLDAP Software is developed and maintained by The  OpenLDAP  Project
60       <http://www.openldap.org/>.  OpenLDAP Software is derived from the Uni‐
61       versity of Michigan LDAP 3.3 Release.
62
63
64
65OpenLDAP 2.4.57                   2021/01/18                    LDAP_MODRDN(3)
Impressum