X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=libraries%2Flibldap%2Fmodrdn.c;h=c160ea87b408f42652452e7bc44f000c91045d70;hb=544d00f3e53f598e51d23c795f72e5ba3a2f8642;hp=4f59a09df25060bf57b4dd2f627a0ff2ea3a50f2;hpb=844cc979285b308af5fb5b862c7cf619912c576a;p=openldap diff --git a/libraries/libldap/modrdn.c b/libraries/libldap/modrdn.c index 4f59a09df2..c160ea87b4 100644 --- a/libraries/libldap/modrdn.c +++ b/libraries/libldap/modrdn.c @@ -1,18 +1,21 @@ /* $OpenLDAP$ */ -/* - * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved. - * COPYING RESTRICTIONS APPLY, see COPYRIGHT file - */ -/* Portions - * Copyright (c) 1990 Regents of the University of Michigan. - * All rights reserved. +/* This work is part of OpenLDAP Software . * - * modrdn.c - */ -/* - * Support for MODIFYDN REQUEST V3 (newSuperior) by: + * Copyright 1998-2006 The OpenLDAP Foundation. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted only as authorized by the OpenLDAP + * Public License. * - * Copyright 1999, Juan C. Gomez, All rights reserved. + * A copy of this license is available in the file LICENSE in the + * top-level directory of the distribution or, alternatively, at + * . + */ +/* Portions Copyright (c) 1990 Regents of the University of Michigan. + * All rights reserved. + */ +/* Copyright 1999, Juan C. Gomez, All rights reserved. * This software is not subject to any license of Silicon Graphics * Inc. or Purdue University. * @@ -20,6 +23,13 @@ * without restriction or fee of any kind as long as this notice * is preserved. */ +/* Portions Copyright (C) The Internet Society (1997) + * ASN.1 fragments are from RFC 2251; see RFC 2251 for full legal notices. + */ + +/* ACKNOWLEDGEMENTS: + * Juan C. Gomez + */ /* * A modify rdn request looks like this: @@ -69,11 +79,7 @@ ldap_rename( int rc; ber_int_t id; -#ifdef NEW_LOGGING - LDAP_LOG ( OPERATION, ENTRY, "ldap_rename\n", 0, 0, 0 ); -#else Debug( LDAP_DEBUG_TRACE, "ldap_rename\n", 0, 0, 0 ); -#endif /* check client controls */ rc = ldap_int_client_controls( ld, cctrls ); @@ -156,11 +162,7 @@ ldap_rename2( int msgid; int rc; -#ifdef NEW_LOGGING - LDAP_LOG ( OPERATION, ENTRY, "ldap_rename2\n", 0, 0, 0 ); -#else Debug( LDAP_DEBUG_TRACE, "ldap_rename2\n", 0, 0, 0 ); -#endif rc = ldap_rename( ld, dn, newrdn, newSuperior, deleteoldrdn, NULL, NULL, &msgid ); @@ -217,7 +219,7 @@ ldap_rename_s( return rc; } - rc = ldap_result( ld, msgid, 1, NULL, &res ); + rc = ldap_result( ld, msgid, LDAP_MSG_ALL, NULL, &res ); if( rc == -1 ) { return ld->ld_errno;