Movatterモバイル変換


[0]ホーム

URL:


man7.org > Linux >man-pages

Linux/UNIX system programming training


ldap_rename(3) — Linux manual page

NAME |LIBRARY |SYNOPSIS |DESCRIPTION |ERRORS |SEE ALSO |ACKNOWLEDGEMENTS |COLOPHON

LDAP_RENAME(3)           Library Functions ManualLDAP_RENAME(3)

NAME        top

       ldap_rename, ldap_rename_s - Renames the specified entry.

LIBRARY        top

       OpenLDAP LDAP (libldap, -lldap)

SYNOPSIS        top

#include <ldap.h>int ldap_rename( ld, dn, newrdn, newparent, deleteoldrdn, sctrls[], cctrls[], msgidp );       LDAP *ld;       const char *dn, *newrdn, *newparent;       int deleteoldrdn;       LDAPControl *sctrls[], *cctrls[];       int *msgidp);int ldap_rename_s( ld, dn, newrdn, newparent, deleteoldrdn, sctrls[], cctrls[] );       LDAP *ld;       const char *dn, *newrdn, *newparent;       int deleteoldrdn;       LDAPControl *sctrls[], *cctrls[];

DESCRIPTION        top

       These routines are used to perform a LDAP rename operation.  The       function changes the leaf component of an entry's distinguished       name and  optionally moves the entry to a new parent container.       Theldap_rename_sperforms a rename operation synchronously.  The       method takesdn, which points to the distinguished name of the       entry whose attribute is being compared,newparent,the       distinguished name of the entry's new parent. If this parameter is       NULL, only the RDN is changed.  The root DN is specified by       passing a zero length string, "".deleteoldrdn specifies whether       the old RDN should be retained or deleted.  Zero indicates that       the old RDN should be retained. If you choose this option, the       attribute will contain both names (the old and the new).  Non-zero       indicates that the old RDN should be deleted.serverctrls points       to an array of LDAPControl structures that list the client       controls to use with this extended operation. Use NULL to specify       no client controls.clientctrls points to an array of LDAPControl       structures that list the client controls to use with the search.ldap_renameworks just likeldap_rename_s,but the operation is       asynchronous. It returns the message id of the request it       initiated. The result of this operation can be obtained by callingldap_result(3).

ERRORS        top

ldap_rename()returns -1 in case of error initiating the request,       and will set theld_errno field in theld parameter to indicate       the error.ldap_rename_s()returns the LDAP error code resulting       from the rename operation.

SEE ALSO        top

ldap(3),ldap_modify(3)

ACKNOWLEDGEMENTS        top

OpenLDAP Softwareis developed and maintained by The OpenLDAP       Project <http://www.openldap.org/>.OpenLDAP Softwareis derived       from the University of Michigan LDAP 3.3 Release.

COLOPHON        top

       This page is part of theOpenLDAP (an open source implementation       of the Lightweight Directory Access Protocol) project.       Information about the project can be found at        ⟨http://www.openldap.org/⟩.  If you have a bug report for this       manual page, see ⟨http://www.openldap.org/its/⟩.  This page was       obtained from the project's upstream Git repository       ⟨https://git.openldap.org/openldap/openldap.git⟩ on 2025-08-11.       (At that time, the date of the most recent commit that was found       in the repository was 2025-08-05.)  If you discover any rendering       problems in this HTML version of the page, or you believe there is       a better or more up-to-date source for the page, or you have       corrections or improvements to the information in this COLOPHON       (which isnot part of the original manual page), send a mail to       man-pages@man7.orgOpenLDAP LDVERSION             RELEASEDATELDAP_RENAME(3)

Pages that refer to this page:ldapmodify(1)ldapmodrdn(1)



HTML rendering created 2025-09-06 byMichael Kerrisk, author ofThe Linux Programming Interface.

For details of in-depthLinux/UNIX system programming training courses that I teach, lookhere.

Hosting byjambit GmbH.

Cover of TLPI


[8]ページ先頭

©2009-2025 Movatter.jp