#pragma ident "%Z%%M% %I% %E% SMI"
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Mozilla Communicator client code, released
* March 31, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
/*
* delete.c
*/
#if 0
#ifndef lint
static char copyright[] = "@(#) Copyright (c) 1990 Regents of the University of Michigan.\nAll rights reserved.\n";
#endif
#endif
#include "ldap-int.h"
/*
* ldap_delete - initiate an ldap delete operation. Parameters:
*
* ld LDAP descriptor
* dn DN of the object to delete
*
* Example:
* msgid = ldap_delete( ld, dn );
*/
int
{
int msgid;
return( msgid );
} else {
return( -1 ); /* error is in ld handle */
}
}
int
{
/*
* A delete request looks like this:
* DelRequet ::= DistinguishedName,
*/
if ( !NSLDAPI_VALID_LDAP_POINTER( ld )) {
return( LDAP_PARAM_ERROR );
}
if ( !NSLDAPI_VALID_LDAPMESSAGE_POINTER( msgidp ))
{
return( LDAP_PARAM_ERROR );
}
dn = "";
}
/* see if we should add to the cache */
dn )) != 0 ) {
return( LDAP_SUCCESS );
}
}
/* create a message to send */
!= LDAP_SUCCESS ) {
return( lderr );
}
== -1 ) {
return( lderr );
}
!= LDAP_SUCCESS ) {
return( lderr );
}
/* send the message */
}
int
{
}
int
{
&msgid )) != LDAP_SUCCESS ) {
return( err );
}
}
}