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>
25 struct shellinfo *si = (struct shellinfo *) be->be_private;
28 if ( si->si_unbind == NULL ) {
32 if ( (op->o_private = (void *) forkandexec( si->si_unbind, &rfp, &wfp ))
37 /* write out the request to the unbind process */
38 fprintf( wfp, "UNBIND\n" );
39 fprintf( wfp, "msgid: %ld\n", (long) op->o_msgid );
40 print_suffixes( wfp, be );
41 fprintf( wfp, "dn: %s\n", (conn->c_dn.bv_len ? conn->c_dn.bv_val : "") );
44 /* no response to unbind */