LDAP_RENAME(3) 1 LDAP_RENAME(3)ldap_rename - Modify the name of an entrySYNOPSIS
bool ldap_rename (resource $link_identifier, string $dn, string $newrdn, string $newparent, bool $deleteoldrdn)
DESCRIPTION
The entry specified by $dn is renamed/moved.
PARAMETERS
o $link_identifier
- An LDAP link identifier, returned by ldap_connect(3).
o $dn
- The distinguished name of an LDAP entity.
o $newrdn
- The new RDN.
o $newparent
- The new parent/superior entry.
o $deleteoldrdn
- If TRUE the old RDN value(s) is removed, else the old RDN value(s) is retained as non-distinguished values of the entry.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
NOTES
Note
This function currently only works with LDAPv3. You may have to use ldap_set_option(3) prior to binding to use LDAPv3. This func-
tion is only available when using OpenLDAP 2.x.x OR Netscape Directory SDK x.x.
SEE ALSO ldap_modify(3).
PHP Documentation Group LDAP_RENAME(3)
Check Out this Related Man Page
LDAP_RENAME(3) Library Functions Manual LDAP_RENAME(3)NAME
ldap_rename, ldap_rename_s - Renames the specified entry.
LIBRARY
OpenLDAP LDAP (libldap, -lldap)
SYNOPSIS
#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
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. The ldap_rename_s performs a rename operation synchronously. The method takes dn,
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_rename works just like ldap_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 calling ldap_result(3).
ERRORS
ldap_rename() returns -1 in case of error initiating the request, and will set the ld_errno field in the ld parameter to indicate the
error. ldap_rename_s() returns the LDAP error code resulting from the rename operation.
SEE ALSO ldap(3), ldap_modify(3)ACKNOWLEDGEMENTS
OpenLDAP Software is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>. OpenLDAP Software is derived from Uni-
versity of Michigan LDAP 3.3 Release.
OpenLDAP 2.4.28 2011/11/24 LDAP_RENAME(3)
Emergency UNIX and Linux Support !! Help Me! Forum (Request Urgent Help)
README FIRST: How to Request Emergency or Urgent Help:
You may post emergency work-related questions in the emergency forum. To post in this forum you will need to use your Bits. All questions answered on a "best... (0 Replies)
Homework Help:
On Posting Questions:
Any and all high school and undergraduate homework assignments or textbook style exercises for which you are seeking assistance are to be posted only in our Homework & Coursework Questions area--not in blogs, visitor messages, PMs, or the main technical... (0 Replies)
How to Use Code Tags in The UNIX and Linux Forums
Developer: This video tutorial was created by scott for forum users. Everyone should use code tags when posting code and command line logic in the forums.
cPF45jjWe7Q
A full list of BB codes is available here. (8 Replies)
RULES OF THE UNIX AND LINUX FORUMS
For the latest version of the community rules (the official community rules page), please visit here.
No flames, shouting (all caps), sarcasm, bullying, profanity or arrogant posts.
No negative comments about others or impolite remarks. Be patient. No... (1 Reply)
Hey,
Just added a new UserCP option so you can change the code tags to look like the code tags in this example (turn this on and off):
Note: I set the default to "SyntaxHighlighting" for debugging purposes. We can change the default back to the original code tags later.
... (36 Replies)
Having spent a lot of time over the past year taking a legacy vBulletin site (this forum) and making the site responsive on mobile; I've happy with the results; but it will soon be time to move on.
Basically, at our core, we are a LAMP (Linux, Apache2, MySQL and PHP) site, and vBulletin was... (6 Replies)
On this special Happy News Year day, 1 January 2019, I am pleased to promote Ravinder Singh to UNIX.COM Moderator, for at least the following reasons:
Ravinder Loves UNIX.COM
Ravinder has 1,372 Thanks, which puts him in the Top Ten in that important single category.
Ravinder is one of... (8 Replies)
Please join me in congratulations to Wolf Machowitsch (bakunin) for his long overdue lifetime achievement award badge from UNIX.COM in computer wizardry:
"The Order of the Wizard's Hat - Lifetime Achievement Award"
This "Order of the Wizard's Hat" is presented to Wolf Machowitsch (bakunin)... (11 Replies)
Dear All,
We were hit with a denial of service (DOS) attack today beginning around June 12th 2019 @ 01:27:51 PM from an IP address registered to "RACKWEB-NET" in Bulgaria.
I was notified about this around June 12th 2019 @ 03:05 PM and did some log file analysis and discovered how the attack... (4 Replies)
Dear All,
I am very pleased to inform everyone that Nicki Paul (zxmaus) is joining the Moderation Team after a number of years away from the site.
Nicki used to be very active here (over 800 posts), and she got busy with travel, work, family and her dogs, and we have missed her. Now she is... (7 Replies)