1N/A#
pragma ident "%Z%%M% %I% %E% SMI" 1N/A * The contents of this file are subject to the Netscape Public 1N/A * License Version 1.1 (the "License"); you may not use this file 1N/A * except in compliance with the License. You may obtain a copy of 1N/A * Software distributed under the License is distributed on an "AS 1N/A * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or 1N/A * implied. See the License for the specific language governing 1N/A * rights and limitations under the License. 1N/A * The Original Code is Mozilla Communicator client code, released 1N/A * The Initial Developer of the Original Code is Netscape 1N/A * Communications Corporation. Portions created by Netscape are 1N/A * Copyright (C) 1998-1999 Netscape Communications Corporation. All 1N/A * Copyright (c) 1990 Regents of the University of Michigan. 1N/A * All rights reserved. 1N/Astatic char copyright[] =
"@(#) Copyright (c) 1990 Regents of the University of Michigan.\nAll rights reserved.\n";
1N/A * ldap_rename - initiate an ldap modifyDN operation. Parameters: 1N/A * ld LDAP descriptor 1N/A * dn DN of the object to modify 1N/A * newrdn RDN that will form leftmost component of entry's new name 1N/A * newparent if present, this is the Distinguished Name of the entry 1N/A * which becomes the immediate parent of the existing entry 1N/A * deleteoldrdn nonzero means to delete old rdn values from the entry 1N/A * while zero means to retain them as attributes of the entry 1N/A * serverctrls list of LDAP server controls 1N/A * clientctrls list of client controls 1N/A * msgidp this result parameter will be set to the message id of the 1N/A * request if the ldap_rename() call succeeds 1N/A * rc = ldap_rename( ld, dn, newrdn, newparent, deleteoldrdn, serverctrls, clientctrls, &msgid ); 1N/A * A modify dn request looks like this: 1N/A * ModifyDNRequest ::= SEQUENCE { 1N/A * newrdn RelativeLDAPDN, 1N/A * newparent [0] LDAPDN OPTIONAL, 1N/A * deleteoldrdn BOOLEAN 1N/A /* only ldapv3 or higher can do a proper rename 1N/A * (i.e. with non-NULL newparent and/or controls) 1N/A /* see if modRDN or modDN is handled by the cache */ 1N/A /* create a message to send */ 1N/A /* send the message */ 1N/A return( -
1 );
/* error is in ld handle */