1 /* unbind.c - unbind handler for back-asyncmeta */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 2016-2018 The OpenLDAP Foundation.
6 * Portions Copyright 2016 Symas Corporation.
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted only as authorized by the OpenLDAP
13 * A copy of this license is available in the file LICENSE in the
14 * top-level directory of the distribution or, alternatively, at
15 * <http://www.OpenLDAP.org/license.html>.
19 * This work was developed by Symas Corporation
20 * based on back-meta module for inclusion in OpenLDAP Software.
21 * This work was sponsored by Ericsson. */
28 #include <ac/socket.h>
29 #include <ac/string.h>
32 #include "../back-ldap/back-ldap.h"
33 #include "back-asyncmeta.h"
36 asyncmeta_back_conn_destroy(
40 a_metainfo_t *mi = ( a_metainfo_t * )be->be_private;
43 Debug( LDAP_DEBUG_TRACE,
44 "=>asyncmeta_back_conn_destroy: fetching conn=%ld DN=\"%s\"\n",
46 BER_BVISNULL( &conn->c_ndn ) ? "" : conn->c_ndn.bv_val, 0 );
48 * Cleanup rewrite session
50 for ( i = 0; i < mi->mi_ntargets; ++i ) {
51 rewrite_session_delete( mi->mi_targets[ i ]->mt_rwmap.rwm_rw, conn );