/*
*/
/*
* 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):
*/
/*
* Copyright (c) 1990 Regents of the University of Michigan.
* All rights reserved.
*/
/*
* unbind.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"
int
{
}
int
{
}
int
{
}
/*
* Dispose of the LDAP session ld, including all associated connections
* and resources. If close is non-zero, an unbind() request is sent as well.
*/
int
{
if ( !NSLDAPI_VALID_LDAP_POINTER( ld )) {
return( LDAP_PARAM_ERROR );
}
}
/* free and unbind from all open connections */
}
} else {
int i;
}
}
ldap_msgfree( lm );
}
/* call cache unbind function to allow it to clean up after itself */
}
/* call the dispose handle I/O callback if one is defined */
/*
* We always pass the session extended I/O argument to
* the dispose handle callback.
*/
}
#ifdef LDAP_SASLIO_HOOKS
#endif
/*
* XXXmcs: should use cache function pointers to hook in memcache
*/
}
/* free all mutexes we have allocated */
NSLDAPI_FREE( (char *) ld );
return( err );
}
int
{
/* create a message to send */
!= LDAP_SUCCESS ) {
return( err );
}
/* fill it in */
return( err );
}
!= LDAP_SUCCESS ) {
return( err );
}
/* Send the message in async mode to stop being blocked */
if ( rc == -2 ) {
/*
* We have an async return. We were unable to send
* the unbind message. Mark the connection as "dead"
*/
}
return( err );
}
return( LDAP_SUCCESS );
}