unbind.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
*
* Portions Copyright %G% Sun Microsystems, Inc.
* All Rights Reserved
*
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Copyright (c) 1990 Regents of the University of Michigan.
* All rights reserved.
*
* unbind.c
*/
#ifndef lint
static char copyright[] = "@(#) Copyright (c) 1990 Regents of the University of Michigan.\nAll rights reserved.\n";
#endif
#include <stdio.h>
#include <string.h>
#ifdef MACOS
#include <stdlib.h>
#include "macos.h"
#else /* MACOS */
#include "msdos.h"
#ifdef NCSA
#include "externs.h"
#endif /* NCSA */
#else /* DOS */
#endif /* DOS */
#endif /* MACOS */
#include "lber.h"
#include "ldap.h"
#include "ldap-private.h"
#include "ldap-int.h"
int
{
}
int
{
int err = LDAP_SUCCESS;
#ifdef _REENTRANT
#endif
}
/* free and unbind from all open connections */
}
} else {
int i;
}
#ifdef LDAP_SSL
}
#endif
}
}
#ifdef _REENTRANT
#endif
ldap_msgfree( lm );
}
#ifdef _REENTRANT
#endif
#ifndef NO_CACHE
ldap_destroy_cache( ld );
#endif /* !NO_CACHE */
#ifdef LDAP_SSL
#endif
{
/* free thread-specific attr buffers */
int i;
for (i = 0; i < MAX_THREAD_ID; i++)
}
}
/* free ldapv3 stuff */
#ifdef _REENTRANT
if (ld->ld_lockcount != 0)
Debug( LDAP_DEBUG_TRACE, catgets(slapdcat, 1, 260, "Mutex problem: ld_lockcount not equal to zero when freeing context\n"), 0, 0, 0 );
#endif
return( err );
}
int
{
}
int
{
#if defined( SUN ) && defined( _REENTRANT )
#endif
/* create a message to send */
#if defined( SUN ) && defined( _REENTRANT )
#endif
}
/* fill it in */
LDAP_REQ_UNBIND ) == -1 ) {
#if defined( SUN ) && defined( _REENTRANT )
#endif
}
/* send the message */
#if defined( SUN ) && defined( _REENTRANT )
#endif
}
#if defined( SUN ) && defined( _REENTRANT )
#endif
return( LDAP_SUCCESS );
}