1 /* unbind.c - shell backend unbind function */
4 * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
5 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
12 #include <ac/socket.h>
13 #include <ac/string.h>
24 struct shellinfo *si = (struct shellinfo *) op->o_bd->be_private;
27 if ( si->si_unbind == NULL ) {
31 if ( (op->o_private = (void *) forkandexec( si->si_unbind, &rfp, &wfp ))
36 /* write out the request to the unbind process */
37 fprintf( wfp, "UNBIND\n" );
38 fprintf( wfp, "msgid: %ld\n", (long) op->o_msgid );
39 print_suffixes( wfp, op->o_bd );
40 fprintf( wfp, "dn: %s\n", (op->o_conn->c_dn.bv_len ? op->o_conn->c_dn.bv_val : "") );
43 /* no response to unbind */