1 /* unbind.c - shell backend unbind function */
4 * Copyright 1998-2002 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, "opid: %ld/%ld\n", op->o_connid, (long) op->o_msgid );
40 fprintf( wfp, "msgid: %ld\n", (long) op->o_msgid );
41 print_suffixes( wfp, be );
42 fprintf( wfp, "dn: %s\n", (conn->c_dn.bv_len ? conn->c_dn.bv_val : "") );
45 /* no response to unbind */