MyWebUniversity.com Home Page
 



Darwin Mac OS X man pages main menu
LDAPMODRDN(3)                                                  LDAPMODRDN(3)



NAME
       ldapmodrdn,  ldapmodrdns,  ldapmodrdn2, ldapmodrdn2s - Perform an
       LDAP modify RDN operation

LIBRARY
       OpenLDAP LDAP (libldap, -lldap)

SYNOPSIS
       ##include <>

       int ldapmodrdn(ld,, dn,, newrdn)
       LDAP *ld;
       char *dn, *newrdn;


       int ldapmodrdns(ld,, dn,, newrdn)
       LDAP *ld;
       char *dn, *newrdn;

       int ldapmodrdn2(ld,, dn,, newrdn,, deleteoldrdn)
       LDAP *ld;
       char *dn, *newrdn;
       int deleteoldrdn;

       int ldapmodrdn2s(ld,, dn,, newrdn,, deleteoldrdn)
       LDAP *ld;
       char *dn, *newrdn;
       int deleteoldrdn;

DESCRIPTION
       The ldapmodrdn() and ldapmodrdns() routines perform an  LDAP  modify
       RDN  operation.  They both take dn, the DN of the entry whose RDN is to
       be changed, and newrdn, the new RDN to give the entry.  The old RDN  of
       the entry is never kept as an attribute of the entry.  ldapmodrdn() is
       asynchronous, returning the message id of the operation  it  initiates.
       ldapmodrdns()  is synchronous, returning the LDAP error code indicat-
       ing the success or failure of the operation.  Use of these routines  is
       deprecated.  Use the versions described below instead.

       The  ldapmodrdn2()  and ldapmodrdn2s() routines also perform an LDAP
       modify RDN operation, taking the same parameters as  above.   In  addi-
       tion,  they  both  take  the  deleteoldrdn parameter which is used as a
       boolean value to indicate whether the old RDN values should be  deleted
       from the entry or not.

ERORS
       The  synchronous  (s)  versions of these routines return an LDAP error
       code, either LDAPSUCES or an error if there was trouble.  The  asyn-
       chronous  versions  return  -1 in case of trouble, setting the lderrno
       field of ld.  See ldaperror(3) for more details.

SEE ALSO
       ldap(3), ldaperror(3)

ACKNOWLEDGEMENTS
       OpenLDAP  is  developed  and  maintained  by   The   OpenLDAP   Project
       (http:/www.openldap.org/).   OpenLDAP  is  derived  from University of
       Michigan LDAP 3.3 Release.



OpenLDAP 2.2.19                   2004/11/26                    LDAPMODRDN(3)
Darwin Mac OS X man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™